Quantcast
Viewing all articles
Browse latest Browse all 8

Inspired by Actual Events: Immutable Collections, Guava-Style

Image may be NSFW.
Clik here to view.
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."

Viewing all articles
Browse latest Browse all 8

Trending Articles