Package com.google.common.collect
Class ForwardingNavigableMap.StandardDescendingMap
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<K,V>
com.google.common.collect.Maps.DescendingMap<K,V>
com.google.common.collect.ForwardingNavigableMap.StandardDescendingMap
- All Implemented Interfaces:
Map<K,
,V> NavigableMap<K,
,V> SequencedMap<K,
,V> SortedMap<K,
V>
- Enclosing class:
ForwardingNavigableMap<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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) NavigableMap
<K, V> forward()
void
replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) Methods inherited from class com.google.common.collect.Maps.DescendingMap
ceilingEntry, ceilingKey, comparator, createEntrySet, delegate, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, subMap, subMap, tailMap, tailMap, toString, values
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from interface java.util.NavigableMap
reversed
Methods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
StandardDescendingMap
public StandardDescendingMap()Constructor for use by subclasses.
-
-
Method Details
-
forward
NavigableMap<K,V> forward()- Specified by:
forward
in classMaps.DescendingMap<K,
V>
-
replaceAll
-
entryIterator
- Specified by:
entryIterator
in classMaps.DescendingMap<K,
V>
-