@Beta protected class ForwardingSortedMap.StandardKeySet extends java.util.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 |
|---|
ForwardingSortedMap.StandardKeySet()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.util.Comparator<? super K> |
comparator() |
boolean |
contains(java.lang.Object o) |
K |
first() |
java.util.SortedSet<K> |
headSet(K toElement) |
boolean |
isEmpty() |
java.util.Iterator<K> |
iterator() |
K |
last() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.SortedSet<K> |
subSet(K fromElement,
K toElement) |
java.util.SortedSet<K> |
tailSet(K fromElement) |
add, addAll, containsAll, toArray, toArray, toStringpublic ForwardingSortedMap.StandardKeySet()
public java.util.Comparator<? super K> comparator()
comparator in interface java.util.SortedSet<K>public java.util.SortedSet<K> subSet(K fromElement,
K toElement)
subSet in interface java.util.SortedSet<K>public java.util.SortedSet<K> headSet(K toElement)
headSet in interface java.util.SortedSet<K>public java.util.SortedSet<K> tailSet(K fromElement)
tailSet in interface java.util.SortedSet<K>public K first()
first in interface java.util.SortedSet<K>public K last()
last in interface java.util.SortedSet<K>public java.util.Iterator<K> iterator()
iterator in interface java.lang.Iterable<K>iterator in interface java.util.Collection<K>iterator in interface java.util.Set<K>iterator in class java.util.AbstractCollection<K>public int size()
size in interface java.util.Collection<K>size in interface java.util.Set<K>size in class java.util.AbstractCollection<K>public boolean isEmpty()
isEmpty in interface java.util.Collection<K>isEmpty in interface java.util.Set<K>isEmpty in class java.util.AbstractCollection<K>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<K>contains in interface java.util.Set<K>contains in class java.util.AbstractCollection<K>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<K>remove in interface java.util.Set<K>remove in class java.util.AbstractCollection<K>public void clear()
clear in interface java.util.Collection<K>clear in interface java.util.Set<K>clear in class java.util.AbstractCollection<K>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.Set<E>removeAll in class java.util.AbstractSet<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.Set<E>retainAll in class java.util.AbstractCollection<E>