Class ForwardingNavigableMap<K,V>
- All Implemented Interfaces:
Map<K,,V> NavigableMap<K,,V> SequencedMap<K,,V> SortedMap<K,V>
Warning: The methods of ForwardingNavigableMap forward indiscriminately
to the methods of the delegate. For example, overriding ForwardingMap.put(K, V) alone will not
change the behavior of ForwardingMap.putAll(java.util.Map<? extends K, ? extends V>), which can lead to unexpected behavior. In this case, you
should override putAll as well, either providing your own implementation, or delegating
to the provided standardPutAll method.
Each of the standard methods uses the map's comparator (or the natural ordering of
the elements, if there is no comparator) to test element equality. As a result, if the comparator
is not consistent with equals, some of the standard implementations may violate the Map
contract.
The standard methods and the collection views they return are not guaranteed to be
thread-safe, even when all of the methods that they depend on are thread-safe.
- Since:
- 12.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionceilingEntry(K key) Deprecated.ceilingKey(K key) Deprecated.Deprecated.Deprecated.Deprecated.floorEntry(K key) Deprecated.Deprecated.Deprecated.higherEntry(K key) Deprecated.Deprecated.Deprecated.lowerEntry(K key) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Methods inherited from class com.google.common.collect.ForwardingSortedMap
comparator, firstKey, headMap, lastKey, subMap, tailMapMethods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods 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, replaceAll, sizeMethods inherited from interface java.util.NavigableMap
headMap, reversed, subMap, tailMapMethods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Method Details
-
lowerEntry
Deprecated.- Specified by:
lowerEntryin interfaceNavigableMap<K,V>
-
lowerKey
Deprecated.- Specified by:
lowerKeyin interfaceNavigableMap<K,V>
-
floorEntry
Deprecated.- Specified by:
floorEntryin interfaceNavigableMap<K,V>
-
floorKey
Deprecated.- Specified by:
floorKeyin interfaceNavigableMap<K,V>
-
ceilingEntry
Deprecated.- Specified by:
ceilingEntryin interfaceNavigableMap<K,V>
-
ceilingKey
Deprecated.- Specified by:
ceilingKeyin interfaceNavigableMap<K,V>
-
higherEntry
Deprecated.- Specified by:
higherEntryin interfaceNavigableMap<K,V>
-
higherKey
Deprecated.- Specified by:
higherKeyin interfaceNavigableMap<K,V>
-
firstEntry
Deprecated.- Specified by:
firstEntryin interfaceNavigableMap<K,V> - Specified by:
firstEntryin interfaceSequencedMap<K,V>
-
lastEntry
Deprecated.- Specified by:
lastEntryin interfaceNavigableMap<K,V> - Specified by:
lastEntryin interfaceSequencedMap<K,V>
-
pollFirstEntry
Deprecated.- Specified by:
pollFirstEntryin interfaceNavigableMap<K,V> - Specified by:
pollFirstEntryin interfaceSequencedMap<K,V>
-
pollLastEntry
Deprecated.- Specified by:
pollLastEntryin interfaceNavigableMap<K,V> - Specified by:
pollLastEntryin interfaceSequencedMap<K,V>
-
descendingMap
Deprecated.- Specified by:
descendingMapin interfaceNavigableMap<K,V>
-
descendingKeySet
Deprecated.- Specified by:
descendingKeySetin interfaceNavigableMap<K,V>
-
subMap
Deprecated.- Specified by:
subMapin interfaceNavigableMap<K,V>
-
headMap
Deprecated.- Specified by:
headMapin interfaceNavigableMap<K,V>
-
tailMap
Deprecated.- Specified by:
tailMapin interfaceNavigableMap<K,V>
-