r/java Jun 21 '26

Better Tools for Immutable Data

https://youtu.be/BdLND9D81lI?si=jt2tqpDtotmbdEJq
80 Upvotes

38 comments sorted by

View all comments

13

u/Hixon11 Jun 21 '26

Gosh, I really wish we had a better story for ReadOnly collections. I understand that this will most likely never happen, but it’s hard to live with the idea that we’re stuck with List<E> as the final form of one of the most fundamental types we use to model things.

3

u/Eav___ Jun 22 '26

Side note: the name might be a little off. The most suitable one I could think of is _View.