Nicolai Parlog 5/29/2019

Immutable Collections In Java - Not Now, Not Ever

Read Original

This technical article delves into the nuanced definitions of 'immutable' vs. 'unmodifiable' collections in Java. It critiques the JDK's and Guava's approaches, explaining why a dedicated ImmutableList type is considered problematic and arguing that immutability should refer only to the collection structure, not its elements.

Immutable Collections In Java - Not Now, Not Ever

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet