Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8184690

add Collectors for collecting into unmodifiable List, Set, and Map

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 10
    • core-libs

    Description

      Add Collector implementations that collect into the unmodifiable List, Set, and Map implementations that are currently returned by List.of(), Set.of(), and Map.of().

      On Collectors:

      toUnmodifiableList()
      toUnmodifiableSet()
      toUnmodifiableMap(keyFunc, valueFunc)
      toUnmodifiableMap(keyFunc, valueFunc, mergeFunc)

      Attachments

        Issue Links

          Activity

            People

              smarks Stuart Marks
              smarks Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: