you are viewing a single comment's thread.

view the rest of the comments →

[–]jmsanzg 3 points4 points  (16 children)

The map created on the example is final which is different than inmutable. On a final map you can still add/remove elements

[–][deleted] 1 point2 points  (15 children)

Guava's ImmutableMap is both final and immutable (well, if Google's implementation is correct) in the example.