@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<? super K> |
comparator() |
boolean |
contains(Object o) |
K |
first() |
SortedSet<K> |
headSet(K toElement) |
boolean |
isEmpty() |
Iterator<K> |
iterator() |
K |
last() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<K> |
subSet(K fromElement,
K toElement) |
SortedSet<K> |
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 StandardKeySet()
public Comparator<? super K> comparator()
comparator in interface SortedSet<K>public Iterator<K> iterator()
iterator in interface Iterable<K>iterator in interface Collection<K>iterator in interface Set<K>iterator in class AbstractCollection<K>public int size()
size in interface Collection<K>size in interface Set<K>size in class AbstractCollection<K>public boolean isEmpty()
isEmpty in interface Collection<K>isEmpty in interface Set<K>isEmpty in class AbstractCollection<K>public boolean contains(Object o)
contains in interface Collection<K>contains in interface Set<K>contains in class AbstractCollection<K>public boolean remove(Object o)
remove in interface Collection<K>remove in interface Set<K>remove in class AbstractCollection<K>public void clear()
clear in interface Collection<K>clear in interface Set<K>clear in class AbstractCollection<K>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface Set<E>removeAll in class AbstractSet<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface Set<E>retainAll in class AbstractCollection<E>Copyright © 2010–2017. All rights reserved.