O'Reilly logo
  • Peng Zhang thinks this is interesting:

unmodifiable copy

From

Cover of Java Concurrency in Practice

Note

No copying here! Just a guarded view preventing the caller from modifying the underlying map. I wonder what happens when the underlying map is modified.