Class ForwardingSortedMap.StandardKeySet
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
com.google.common.collect.ForwardingSortedMap.StandardKeySet
- All Implemented Interfaces:
- Iterable<K>,- Collection<K>,- SequencedCollection<K>,- SequencedSet<K>,- Set<K>,- SortedSet<K>
A sensible implementation of 
SortedMap.keySet() in terms of the methods of 
 ForwardingSortedMap. In many cases, you may wish to override ForwardingMap.keySet() to forward to this implementation or a subclass thereof.- Since:
- 15.0
- Author:
- Mike Bostock, Louis Wasserman
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()@Nullable Comparator<? super K> booleanfirst()booleanisEmpty()iterator()last()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Methods inherited from class java.util.AbstractSetequals, hashCodeMethods inherited from class java.util.AbstractCollectionadd, addAll, containsAll, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Setadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSetaddFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed, spliterator
- 
Constructor Details- 
StandardKeySetpublic StandardKeySet()Constructor for use by subclasses.
 
- 
- 
Method Details- 
comparator- Specified by:
- comparatorin interface- SortedSet<K extends @Nullable Object>
 
- 
subSet
- 
headSet
- 
tailSet
- 
first
- 
last
- 
iterator
- 
size
- 
isEmpty
- 
contains
- 
remove
- 
clear
- 
removeAll
- 
retainAll
 
-