@Beta protected class ForwardingMap.StandardKeySet extends AbstractSet<E>
Map.keySet()
in terms of the following methods:
ForwardingMap.clear()
,
ForwardingMap.containsKey(java.lang.Object)
,
ForwardingMap.isEmpty()
,
ForwardingMap.remove(java.lang.Object)
,
ForwardingMap.size()
, and the
Set.iterator()
method of
ForwardingMap.entrySet()
. 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()
|
boolean |
contains(Object
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object
|
boolean |
removeAll(Collection
|
boolean |
retainAll(Collection
|
int |
size()
|
equals, hashCode
add, addAll, containsAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, containsAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
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)