Package com.google.common.collect
Class Maps.NavigableKeySet<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.google.common.collect.Sets.ImprovedAbstractSet<K>
-
- com.google.common.collect.Maps.KeySet<K,V>
-
- com.google.common.collect.Maps.SortedKeySet<K,V>
-
- com.google.common.collect.Maps.NavigableKeySet<K,V>
-
- All Implemented Interfaces:
java.lang.Iterable<K>
,java.util.Collection<K>
,java.util.NavigableSet<K>
,java.util.Set<K>
,java.util.SortedSet<K>
- Direct Known Subclasses:
ForwardingNavigableMap.StandardNavigableKeySet
- Enclosing class:
- Maps
static class Maps.NavigableKeySet<K,V> extends Maps.SortedKeySet<K,V> implements java.util.NavigableSet<K>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.Maps.KeySet
map
-
-
Constructor Summary
Constructors Constructor Description NavigableKeySet(java.util.NavigableMap<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
ceiling(K e)
java.util.Iterator<K>
descendingIterator()
java.util.NavigableSet<K>
descendingSet()
K
floor(K e)
java.util.SortedSet<K>
headSet(K toElement)
java.util.NavigableSet<K>
headSet(K toElement, boolean inclusive)
K
higher(K e)
K
lower(K e)
(package private) java.util.NavigableMap<K,V>
map()
K
pollFirst()
K
pollLast()
java.util.NavigableSet<K>
subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)
java.util.SortedSet<K>
subSet(K fromElement, K toElement)
java.util.SortedSet<K>
tailSet(K fromElement)
java.util.NavigableSet<K>
tailSet(K fromElement, boolean inclusive)
-
Methods inherited from class com.google.common.collect.Maps.SortedKeySet
comparator, first, last
-
Methods inherited from class com.google.common.collect.Maps.KeySet
clear, contains, forEach, isEmpty, iterator, remove, size
-
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
ceiling
@CheckForNull public K ceiling(K e)
- Specified by:
ceiling
in interfacejava.util.NavigableSet<K>
-
higher
@CheckForNull public K higher(K e)
- Specified by:
higher
in interfacejava.util.NavigableSet<K>
-
pollFirst
@CheckForNull public K pollFirst()
- Specified by:
pollFirst
in interfacejava.util.NavigableSet<K>
-
pollLast
@CheckForNull public K pollLast()
- Specified by:
pollLast
in interfacejava.util.NavigableSet<K>
-
descendingSet
public java.util.NavigableSet<K> descendingSet()
- Specified by:
descendingSet
in interfacejava.util.NavigableSet<K>
-
descendingIterator
public java.util.Iterator<K> descendingIterator()
- Specified by:
descendingIterator
in interfacejava.util.NavigableSet<K>
-
subSet
public java.util.NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)
- Specified by:
subSet
in interfacejava.util.NavigableSet<K>
-
headSet
public java.util.NavigableSet<K> headSet(K toElement, boolean inclusive)
- Specified by:
headSet
in interfacejava.util.NavigableSet<K>
-
tailSet
public java.util.NavigableSet<K> tailSet(K fromElement, boolean inclusive)
- Specified by:
tailSet
in interfacejava.util.NavigableSet<K>
-
-