@Beta protected class ForwardingNavigableMap.StandardDescendingMap extends ForwardingMap<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. 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 |
|---|---|
Map |
ceilingEntry(K key)
|
K |
ceilingKey(K key)
|
Comparator |
comparator()
|
protected Map |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
NavigableSet |
descendingKeySet()
|
NavigableMap |
descendingMap()
|
protected Iterator |
entryIterator()
|
Set |
entrySet()
|
Map |
firstEntry()
|
K |
firstKey()
|
Map |
floorEntry(K key)
|
K |
floorKey(K key)
|
SortedMap |
headMap(K toKey)
|
NavigableMap |
headMap(K toKey, boolean inclusive)
|
Map |
higherEntry(K key)
|
K |
higherKey(K key)
|
Set |
keySet()
|
Map |
lastEntry()
|
K |
lastKey()
|
Map |
lowerEntry(K key)
|
K |
lowerKey(K key)
|
NavigableSet |
navigableKeySet()
|
Map |
pollFirstEntry()
|
Map |
pollLastEntry()
|
NavigableMap |
subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
|
SortedMap |
subMap(K fromKey, K toKey)
|
SortedMap |
tailMap(K fromKey)
|
NavigableMap |
tailMap(K fromKey, boolean inclusive)
|
String |
toString()
Returns the string representation generated by the delegate's
toString method.
|
Collection |
values()
|
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic StandardDescendingMap()
protected final Map<K ,V> delegate()
ForwardingObject
ForwardingSet.delegate() . Concrete subclasses override this method to supply the instance being decorated.
public Comparator<? super K> comparator()
public K firstKey()
public K lastKey()
public Map.Entry <K ,V> lowerEntry(K key)
public K lowerKey(K key)
public Map.Entry <K ,V> floorEntry(K key)
public K floorKey(K key)
public Map.Entry <K ,V> ceilingEntry(K key)
public K ceilingKey(K key)
public Map.Entry <K ,V> higherEntry(K key)
public K higherKey(K key)
public Map.Entry <K ,V> firstEntry()
public Map.Entry <K ,V> lastEntry()
public Map.Entry <K ,V> pollFirstEntry()
public Map.Entry <K ,V> pollLastEntry()
public NavigableMap<K ,V> descendingMap()
public Set<K> keySet()
public NavigableSet<K> navigableKeySet()
public NavigableSet<K> descendingKeySet()
public NavigableMap<K ,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
public NavigableMap<K ,V> headMap(K toKey, boolean inclusive)
public NavigableMap<K ,V> tailMap(K fromKey, boolean inclusive)
public SortedMap<K ,V> subMap(K fromKey, K toKey)
public SortedMap<K ,V> headMap(K toKey)
public SortedMap<K ,V> tailMap(K fromKey)
public Collection<V> values()
public StringtoString()
ForwardingObject
toString method.