JDK-8197976 : Release Note: APIs for Creating Unmodifiable Collections
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 10
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2018-02-15
  • Updated: 2018-03-26
  • Resolved: 2018-02-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10Resolved
Description
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.