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, tailMap
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class com.google.common.collect.ForwardingObject
toString
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, replaceAll, size
Methods inherited from interface java.util.NavigableMap
headMap, reversed, subMap, tailMap
Methods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Method Details
-
lowerEntry
Deprecated.- Specified by:
lowerEntry
in interfaceNavigableMap<K,
V>
-
lowerKey
Deprecated.- Specified by:
lowerKey
in interfaceNavigableMap<K,
V>
-
floorEntry
Deprecated.- Specified by:
floorEntry
in interfaceNavigableMap<K,
V>
-
floorKey
Deprecated.- Specified by:
floorKey
in interfaceNavigableMap<K,
V>
-
ceilingEntry
Deprecated.- Specified by:
ceilingEntry
in interfaceNavigableMap<K,
V>
-
ceilingKey
Deprecated.- Specified by:
ceilingKey
in interfaceNavigableMap<K,
V>
-
higherEntry
Deprecated.- Specified by:
higherEntry
in interfaceNavigableMap<K,
V>
-
higherKey
Deprecated.- Specified by:
higherKey
in interfaceNavigableMap<K,
V>
-
firstEntry
Deprecated.- Specified by:
firstEntry
in interfaceNavigableMap<K,
V> - Specified by:
firstEntry
in interfaceSequencedMap<K,
V>
-
lastEntry
Deprecated.- Specified by:
lastEntry
in interfaceNavigableMap<K,
V> - Specified by:
lastEntry
in interfaceSequencedMap<K,
V>
-
pollFirstEntry
Deprecated.- Specified by:
pollFirstEntry
in interfaceNavigableMap<K,
V> - Specified by:
pollFirstEntry
in interfaceSequencedMap<K,
V>
-
pollLastEntry
Deprecated.- Specified by:
pollLastEntry
in interfaceNavigableMap<K,
V> - Specified by:
pollLastEntry
in interfaceSequencedMap<K,
V>
-
descendingMap
Deprecated.- Specified by:
descendingMap
in interfaceNavigableMap<K,
V>
-
descendingKeySet
Deprecated.- Specified by:
descendingKeySet
in interfaceNavigableMap<K,
V>
-
subMap
Deprecated.- Specified by:
subMap
in interfaceNavigableMap<K,
V>
-
headMap
Deprecated.- Specified by:
headMap
in interfaceNavigableMap<K,
V>
-
tailMap
Deprecated.- Specified by:
tailMap
in interfaceNavigableMap<K,
V>
-