Package com.google.common.collect
Class Maps.SortedKeySet<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>
-
- All Implemented Interfaces:
java.lang.Iterable<K>
,java.util.Collection<K>
,java.util.Set<K>
,java.util.SortedSet<K>
- Direct Known Subclasses:
ForwardingSortedMap.StandardKeySet
,Maps.NavigableKeySet
- Enclosing class:
- Maps
static class Maps.SortedKeySet<K,V> extends Maps.KeySet<K,V> implements java.util.SortedSet<K>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.Maps.KeySet
map
-
-
Constructor Summary
Constructors Constructor Description SortedKeySet(java.util.SortedMap<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<? super K>
comparator()
K
first()
java.util.SortedSet<K>
headSet(K toElement)
K
last()
(package private) java.util.SortedMap<K,V>
map()
java.util.SortedSet<K>
subSet(K fromElement, K toElement)
java.util.SortedSet<K>
tailSet(K fromElement)
-
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
-
comparator
public java.util.Comparator<? super K> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<K>
-
subSet
public java.util.SortedSet<K> subSet(K fromElement, K toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<K>
-
headSet
public java.util.SortedSet<K> headSet(K toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<K>
-
tailSet
public java.util.SortedSet<K> tailSet(K fromElement)
- Specified by:
tailSet
in interfacejava.util.SortedSet<K>
-
-