Quantcast
Channel: JavaPins - Stories tagged with immutable
Viewing all articles
Browse latest Browse all 8

Inspired by Actual Events: Immutable Collections, Guava-Style

$
0
0
My general preference is to use immutable classes and collections as often as possible. I have often used the Collections methods for returning unmodifiable collections. One drawback of the "unmodifiable" methods is that they only create "views" of the data structures passed to them and any changes to those underlying structures do change the contents of those "views."
Pin it

Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images