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:
java.io.Serializable
,java.util.Map<K,V>
,java.util.NavigableMap<K,V>
,java.util.SortedMap<K,V>
- Enclosing class:
- Maps
static class Maps.UnmodifiableNavigableMap<K,V> extends ForwardingSortedMap<K,V> implements java.util.NavigableMap<K,V>, java.io.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
Fields Modifier and Type Field Description private java.util.NavigableMap<K,? extends V>
delegate
private Maps.UnmodifiableNavigableMap<K,V>
descendingMap
-
Constructor Summary
Constructors Constructor Description UnmodifiableNavigableMap(java.util.NavigableMap<K,? extends V> delegate)
UnmodifiableNavigableMap(java.util.NavigableMap<K,? extends V> delegate, Maps.UnmodifiableNavigableMap<K,V> descendingMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map.Entry<K,V>
ceilingEntry(K key)
K
ceilingKey(K key)
protected java.util.SortedMap<K,V>
delegate()
Returns the backing delegate instance that methods are forwarded to.java.util.NavigableSet<K>
descendingKeySet()
java.util.NavigableMap<K,V>
descendingMap()
java.util.Map.Entry<K,V>
firstEntry()
java.util.Map.Entry<K,V>
floorEntry(K key)
K
floorKey(K key)
java.util.SortedMap<K,V>
headMap(K toKey)
java.util.NavigableMap<K,V>
headMap(K toKey, boolean inclusive)
java.util.Map.Entry<K,V>
higherEntry(K key)
K
higherKey(K key)
java.util.Set<K>
keySet()
java.util.Map.Entry<K,V>
lastEntry()
java.util.Map.Entry<K,V>
lowerEntry(K key)
K
lowerKey(K key)
java.util.NavigableSet<K>
navigableKeySet()
java.util.Map.Entry<K,V>
pollFirstEntry()
java.util.Map.Entry<K,V>
pollLastEntry()
java.util.NavigableMap<K,V>
subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
java.util.SortedMap<K,V>
subMap(K fromKey, K toKey)
java.util.SortedMap<K,V>
tailMap(K fromKey)
java.util.NavigableMap<K,V>
tailMap(K fromKey, boolean inclusive)
-
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
-
-
-
-
Field Detail
-
descendingMap
@CheckForNull private transient Maps.UnmodifiableNavigableMap<K,V> descendingMap
-
-
Method Detail
-
delegate
protected java.util.SortedMap<K,V> 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>
-
keySet
public java.util.Set<K> keySet()
-
navigableKeySet
public java.util.NavigableSet<K> navigableKeySet()
-
descendingKeySet
public java.util.NavigableSet<K> descendingKeySet()
-
subMap
public java.util.NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
-
-