Package com.google.common.collect
Class ForwardingMultiset.StandardElementSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.google.common.collect.Sets.ImprovedAbstractSet<E>
com.google.common.collect.Multisets.ElementSet<E>
com.google.common.collect.ForwardingMultiset.StandardElementSet
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
- Enclosing class:
- ForwardingMultiset<E>
A sensible implementation of
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.- Since:
- 10.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.Multisets.ElementSet
clear, contains, containsAll, isEmpty, remove, sizeMethods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAllMethods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
StandardElementSet
public StandardElementSet()Constructor for use by subclasses.
-
-
Method Details
-
multiset
- Specified by:
multisetin classMultisets.ElementSet<E>
-
iterator
-