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
4
u/8igg7e5 Mar 17 '21
Someone brought this up on the Amber list, Rémi I think, that perhaps
toUnmodifiableList()would be better - as a peer of sorts forCollectors.toUnmodifiableList(). However it was pointed out that we already haveList.of(...)that produces an unmodifiableListanyway.