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

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

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • 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:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: