protected class ForwardingNavigableMap.StandardDescendingMap extends Maps.DescendingMap<K,V>
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.
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues
Constructor and Description |
---|
StandardDescendingMap()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Iterator<java.util.Map.Entry<K,V>> |
entryIterator() |
(package private) java.util.NavigableMap<K,V> |
forward() |
void |
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) |
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
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString
public StandardDescendingMap()
java.util.NavigableMap<K,V> forward()
forward
in class Maps.DescendingMap<K,V>
public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
protected java.util.Iterator<java.util.Map.Entry<K,V>> entryIterator()
entryIterator
in class Maps.DescendingMap<K,V>