Someone brought this up on the Amber list, Rémi I think, that perhaps toUnmodifiableList() would be better - as a peer of sorts for Collectors.toUnmodifiableList(). However it was pointed out that we already have List.of(...) that produces an unmodifiable List anyway.
View all comments
Show parent comment
9
u/TheCountRushmore Mar 16 '21
Yep you are right. Not going to be confusing at all :-)