Immutable Collections In Java – Not Now, Not Ever
In JDK terminology, immutable and unmodifiable have shifted over the last few years. At first, the term immutable was used for the collections returned by Java 9’s collection factory methods. But will a method that prints all elements in an immutable collection always have the same output? Yes? No? What’s An Immutable Collection? Is immutability a feature? Can Unmodifiable And Immutable Collections Be Retrofitted? Find out now!
#java #jvm #jdk #architecture #middle
https://blog.codefx.org/java/immutable-collections-in-java/
In JDK terminology, immutable and unmodifiable have shifted over the last few years. At first, the term immutable was used for the collections returned by Java 9’s collection factory methods. But will a method that prints all elements in an immutable collection always have the same output? Yes? No? What’s An Immutable Collection? Is immutability a feature? Can Unmodifiable And Immutable Collections Be Retrofitted? Find out now!
#java #jvm #jdk #architecture #middle
https://blog.codefx.org/java/immutable-collections-in-java/
nipafx // You. Me. Java.
Immutable Collections In Java - Not Now, Not Ever // nipafx
The JDK contains immutable collections, but no type ImmutableCollection. Here's why that's so and why it won't change.