-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 10
-
Component/s: core-libs
-
Verified
Several new APIs have been added that facilitate the creation of unmodifiable collections. The `List.copyOf`, `Set.copyOf`, and `Map.copyOf` methods create new collection instances from existing instances. New methods `toUnmodifiableList`, `toUnmodifiableSet`, and `toUnmodifiableMap` have been added to the `Collectors` class in the Stream package. These allow the elements of a Stream to be collected into an unmodifiable collection.