Package com.google.common.collect
Class ForwardingSortedMap.StandardKeySet
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractSet<E>
- 
- com.google.common.collect.ForwardingSortedMap.StandardKeySet
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<K>,- java.util.Collection<K>,- java.util.Set<K>,- java.util.SortedSet<K>
 - Enclosing class:
- ForwardingSortedMap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
 
 protected class ForwardingSortedMap.StandardKeySet extends java.util.AbstractSet<E> A sensible implementation ofSortedMap.keySet()in terms of the methods ofForwardingSortedMap. In many cases, you may wish to overrideForwardingMap.keySet()to forward to this implementation or a subclass thereof.- Since:
- 15.0
 
- 
- 
Constructor SummaryConstructors Constructor Description StandardKeySet()Constructor for use by subclasses.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.util.Comparator<? super K>comparator()booleancontains(java.lang.Object o)Kfirst()voidforEach(java.util.function.Consumer<? super K> action)java.util.SortedSet<K>headSet(K toElement)booleanisEmpty()java.util.Iterator<K>iterator()Klast()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.util.SortedSet<K>subSet(K fromElement, K toElement)java.util.SortedSet<K>tailSet(K fromElement)- 
Methods inherited from class java.util.AbstractCollectionadd, addAll, containsAll, toArray, toArray, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
- 
 
- 
- 
- 
Constructor Detail- 
StandardKeySetpublic StandardKeySet() Constructor for use by subclasses.
 
- 
 - 
Method Detail- 
comparator@CheckForNull public java.util.Comparator<? super K> comparator() - Specified by:
- comparatorin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
subSetpublic java.util.SortedSet<K> subSet(K fromElement, K toElement)- Specified by:
- subSetin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
headSetpublic java.util.SortedSet<K> headSet(K toElement) - Specified by:
- headSetin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
tailSetpublic java.util.SortedSet<K> tailSet(K fromElement) - Specified by:
- tailSetin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
firstpublic K first() - Specified by:
- firstin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
lastpublic K last() - Specified by:
- lastin interface- java.util.SortedSet<K extends @Nullable java.lang.Object>
 
 - 
iteratorpublic java.util.Iterator<K> iterator() - Specified by:
- iteratorin interface- java.util.Collection<K extends @Nullable java.lang.Object>
- Specified by:
- iteratorin interface- java.lang.Iterable<K extends @Nullable java.lang.Object>
- Specified by:
- iteratorin interface- java.util.Set<K extends @Nullable java.lang.Object>
- Specified by:
- iteratorin class- java.util.AbstractCollection<K extends @Nullable java.lang.Object>
 
 - 
forEachpublic void forEach(java.util.function.Consumer<? super K> action) 
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
containspublic boolean contains(@CheckForNull java.lang.Object o) 
 - 
removepublic boolean remove(@CheckForNull java.lang.Object o) 
 - 
clearpublic void clear() 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) 
 
- 
 
-