@Beta protected class ForwardingMultiset.StandardElementSet extends AbstractSet<E>
Multiset.elementSet() in terms of the following methods:
ForwardingCollection.clear() ,
ForwardingCollection.contains(java.lang.Object) ,
ForwardingCollection.containsAll(java.util.Collection<?>) ,
ForwardingMultiset.count(java.lang.Object) ,
ForwardingCollection.isEmpty() , the
Set.size() and
Set.iterator() methods of
ForwardingMultiset.entrySet() , and
ForwardingMultiset.remove(Object, int) . In many situations, you may wish to override
ForwardingMultiset.elementSet() to forward to this implementation or a subclass thereof.
| Constructor and Description |
|---|
StandardElementSet()
Constructor for use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
|
boolean |
contains(Object
|
boolean |
containsAll(Collection
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object
|
boolean |
removeAll(Collection
|
boolean |
retainAll(Collection
|
int |
size()
|
equals, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, streampublic void clear()
public boolean contains(Objecto)
public boolean containsAll(Collection<?> c)
public boolean isEmpty()
public Iterator<E> iterator()
public boolean remove(Objecto)
public int size()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)