Class ForwardingNavigableMap.StandardDescendingMap

  • All Implemented Interfaces:
    java.util.Map<K,​V>, java.util.NavigableMap<K,​V>, java.util.SortedMap<K,​V>
    Enclosing class:
    ForwardingNavigableMap<K,​V>

    protected class ForwardingNavigableMap.StandardDescendingMap
    extends Maps.DescendingMap<K,​V>
    A sensible implementation of NavigableMap.descendingMap() in terms of the methods of this NavigableMap. In many cases, you may wish to override ForwardingNavigableMap.descendingMap() to forward to this implementation or a subclass thereof.

    In particular, this map iterates over entries with repeated calls to NavigableMap.lowerEntry(K). If a more efficient means of iteration is available, you may wish to override the entryIterator() method of this class.

    Since:
    12.0
    • Constructor Detail

      • StandardDescendingMap

        public StandardDescendingMap()
        Constructor for use by subclasses.
    • Method Detail

      • replaceAll

        public void replaceAll​(java.util.function.BiFunction<? super K,​? super V,​? extends V> function)