Package com.google.common.collect
Class Maps.NavigableAsMapView<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.google.common.collect.Maps.IteratorBasedAbstractMap<K,V>
-
- com.google.common.collect.AbstractNavigableMap<K,V>
-
- com.google.common.collect.Maps.NavigableAsMapView<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
,java.util.NavigableMap<K,V>
,java.util.SortedMap<K,V>
- Enclosing class:
- Maps
@GwtIncompatible private static final class Maps.NavigableAsMapView<K,V> extends AbstractNavigableMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description NavigableAsMapView(java.util.NavigableSet<K> ks, Function<? super K,V> vFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.util.Comparator<? super K>
comparator()
(package private) java.util.Iterator<java.util.Map.Entry<K,V>>
descendingEntryIterator()
java.util.NavigableMap<K,V>
descendingMap()
(package private) java.util.Iterator<java.util.Map.Entry<K,V>>
entryIterator()
(package private) java.util.Spliterator<java.util.Map.Entry<K,V>>
entrySpliterator()
void
forEach(java.util.function.BiConsumer<? super K,? super V> action)
V
get(java.lang.Object key)
V
getOrDefault(java.lang.Object key, V defaultValue)
java.util.NavigableMap<K,V>
headMap(K toKey, boolean inclusive)
java.util.NavigableSet<K>
navigableKeySet()
int
size()
java.util.NavigableMap<K,V>
subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
java.util.NavigableMap<K,V>
tailMap(K fromKey, boolean inclusive)
-
Methods inherited from class com.google.common.collect.AbstractNavigableMap
ceilingEntry, ceilingKey, descendingKeySet, firstEntry, firstKey, floorEntry, floorKey, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, pollFirstEntry, pollLastEntry, subMap, tailMap
-
Methods inherited from class com.google.common.collect.Maps.IteratorBasedAbstractMap
entrySet, forEachEntry
-
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, put, putAll, remove, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
subMap
public java.util.NavigableMap<K,V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)
-
comparator
public java.util.Comparator<? super K> comparator()
-
get
public V get(java.lang.Object key)
-
clear
public void clear()
-
entryIterator
java.util.Iterator<java.util.Map.Entry<K,V>> entryIterator()
- Specified by:
entryIterator
in classMaps.IteratorBasedAbstractMap<K,V>
-
entrySpliterator
java.util.Spliterator<java.util.Map.Entry<K,V>> entrySpliterator()
- Overrides:
entrySpliterator
in classMaps.IteratorBasedAbstractMap<K,V>
-
descendingEntryIterator
java.util.Iterator<java.util.Map.Entry<K,V>> descendingEntryIterator()
- Specified by:
descendingEntryIterator
in classAbstractNavigableMap<K,V>
-
navigableKeySet
public java.util.NavigableSet<K> navigableKeySet()
- Specified by:
navigableKeySet
in interfacejava.util.NavigableMap<K,V>
- Overrides:
navigableKeySet
in classAbstractNavigableMap<K,V>
-
size
public int size()
-
descendingMap
public java.util.NavigableMap<K,V> descendingMap()
- Specified by:
descendingMap
in interfacejava.util.NavigableMap<K,V>
- Overrides:
descendingMap
in classAbstractNavigableMap<K,V>
-
-