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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • None
    • core-libs

      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)

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

              Created:
              Updated:
              Resolved: