@Beta protected abstract class ForwardingMap.StandardEntrySet extends AbstractSet<E>
A sensible implementation of Map.entrySet()
in terms of the following methods: ForwardingMap.clear()
, ForwardingMap.containsKey(java.lang.Object)
, ForwardingMap.get(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.remove(java.lang.Object)
, and ForwardingMap.size()
. In many cases, you may wish to override ForwardingMap.entrySet()
to forward to this implementation or a subclass thereof.
Constructor and Description |
---|
StandardEntrySet()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(Object o) |
boolean |
isEmpty() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
equals, hashCode
add, addAll, containsAll, iterator, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, containsAll, iterator, spliterator, toArray, toArray
parallelStream, removeIf, stream
public int size()
public void clear()
public boolean contains(Object o)
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)