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

Specialized implementations for putIfAbsent, merge, compute* methods in TreeMap derived maps

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None

      Description

      Specialized implementations for putIfAbsent, merge, compute, computeIfAbsent and computeIfPresent in TreeMap class were created (JDK-8176894). However, derived maps like TreeMap.descendingMap(), TreeMap.subMap(), TreeMap.headMap(), etc. still have default implementation. It looks fairly straightforward to provide these implementations.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tvaleev Tagir Valeev
              Reporter:
              tvaleev Tagir Valeev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: