@Beta protected class ForwardingSortedMap.StandardKeySet extends AbstractSet<E>
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.
| Constructor and Description |
|---|
StandardKeySet()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
|
Comparator |
comparator()
|
boolean |
contains(Object
|
K |
first()
|
SortedSet |
headSet(K toElement)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
K |
last()
|
boolean |
remove(Object
|
boolean |
removeAll(Collection
|
boolean |
retainAll(Collection
|
int |
size()
|
SortedSet |
subSet(K fromElement, K toElement)
|
SortedSet |
tailSet(K fromElement)
|
equals, hashCodeadd, addAll, containsAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic Comparator<? super K> comparator()
public SortedSet<K> subSet(K fromElement, K toElement)
public SortedSet<K> headSet(K toElement)
public SortedSet<K> tailSet(K fromElement)
public K first()
public K last()
public Iterator<K> iterator()
public int size()
public boolean isEmpty()
public boolean contains(Objecto)
public boolean remove(Objecto)
public void clear()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)