Package com.google.common.collect
Class Maps.UnmodifiableNavigableMap<K,V>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<K,V>
com.google.common.collect.ForwardingSortedMap<K,V>
com.google.common.collect.Maps.UnmodifiableNavigableMap<K,V>
- All Implemented Interfaces:
Serializable
,Map<K,
,V> NavigableMap<K,
,V> SequencedMap<K,
,V> SortedMap<K,
V>
- Enclosing class:
Maps
static class Maps.UnmodifiableNavigableMap<K,V>
extends ForwardingSortedMap<K,V>
implements NavigableMap<K,V>, Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingSortedMap
ForwardingSortedMap.StandardKeySet
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
ForwardingMap.StandardEntrySet, ForwardingMap.StandardValues
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NavigableMap
<K, ? extends V> private Maps.UnmodifiableNavigableMap
<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionUnmodifiableNavigableMap
(NavigableMap<K, ? extends V> delegate) UnmodifiableNavigableMap
(NavigableMap<K, ? extends V> delegate, Maps.UnmodifiableNavigableMap<K, V> descendingMap) -
Method Summary
Modifier and TypeMethodDescriptionceilingEntry
(K key) ceilingKey
(K key) computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) delegate()
Returns the backing delegate instance that methods are forwarded to.floorEntry
(K key) higherEntry
(K key) keySet()
lowerEntry
(K key) putIfAbsent
(K key, V value) boolean
boolean
void
replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) Methods inherited from class com.google.common.collect.ForwardingSortedMap
comparator, firstKey, lastKey, standardContainsKey, standardSubMap, unsafeCompare
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, put, putAll, remove, size, standardClear, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, put, putAll, remove, size
Methods inherited from interface java.util.NavigableMap
reversed
Methods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
delegate
-
descendingMap
-
-
Constructor Details
-
Method Details
-
delegate
Description copied from class:ForwardingObject
Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate()
. Concrete subclasses override this method to supply the instance being decorated.- Specified by:
delegate
in classForwardingSortedMap<K,
V>
-
lowerEntry
- Specified by:
lowerEntry
in interfaceNavigableMap<K,
V>
-
lowerKey
- Specified by:
lowerKey
in interfaceNavigableMap<K,
V>
-
floorEntry
- Specified by:
floorEntry
in interfaceNavigableMap<K,
V>
-
floorKey
- Specified by:
floorKey
in interfaceNavigableMap<K,
V>
-
ceilingEntry
- Specified by:
ceilingEntry
in interfaceNavigableMap<K,
V>
-
ceilingKey
- Specified by:
ceilingKey
in interfaceNavigableMap<K,
V>
-
higherEntry
- Specified by:
higherEntry
in interfaceNavigableMap<K,
V>
-
higherKey
- Specified by:
higherKey
in interfaceNavigableMap<K,
V>
-
firstEntry
- Specified by:
firstEntry
in interfaceNavigableMap<K,
V> - Specified by:
firstEntry
in interfaceSequencedMap<K,
V>
-
lastEntry
- Specified by:
lastEntry
in interfaceNavigableMap<K,
V> - Specified by:
lastEntry
in interfaceSequencedMap<K,
V>
-
pollFirstEntry
- Specified by:
pollFirstEntry
in interfaceNavigableMap<K,
V> - Specified by:
pollFirstEntry
in interfaceSequencedMap<K,
V>
-
pollLastEntry
- Specified by:
pollLastEntry
in interfaceNavigableMap<K,
V> - Specified by:
pollLastEntry
in interfaceSequencedMap<K,
V>
-
replaceAll
- Specified by:
replaceAll
in interfaceMap<K,
V>
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceMap<K,
V>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceMap<K,
V>
-
computeIfPresent
@CheckForNull public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresent
in interfaceMap<K,
V>
-
compute
-
merge
-
descendingMap
- Specified by:
descendingMap
in interfaceNavigableMap<K,
V>
-
keySet
-
descendingKeySet
- Specified by:
descendingKeySet
in interfaceNavigableMap<K,
V>
-
subMap
-
subMap
- Specified by:
subMap
in interfaceNavigableMap<K,
V>
-
headMap
-
headMap
- Specified by:
headMap
in interfaceNavigableMap<K,
V>
-
tailMap
-
tailMap
- Specified by:
tailMap
in interfaceNavigableMap<K,
V>
-