@Beta protected class ForwardingMultiset.StandardElementSet extends java.util.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 | Description |
|---|---|
StandardElementSet() |
Constructor for use by subclasses.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
containsAll(java.util.Collection<?> c) |
|
boolean |
isEmpty() |
|
java.util.Iterator<E> |
iterator() |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> c) |
|
boolean |
retainAll(java.util.Collection<?> c) |
|
int |
size() |
public StandardElementSet()
public void clear()
clear in class java.util.AbstractCollection<E>public boolean contains(java.lang.Object o)
contains in class java.util.AbstractCollection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in class java.util.AbstractCollection<E>public boolean isEmpty()
isEmpty in class java.util.AbstractCollection<E>public java.util.Iterator<E> iterator()
iterator in class java.util.AbstractCollection<E>public boolean remove(java.lang.Object o)
remove in class java.util.AbstractCollection<E>public int size()
size in class java.util.AbstractCollection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in class java.util.AbstractSet<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in class java.util.AbstractCollection<E>