Class ForwardingMultiset.StandardElementSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.google.common.collect.ForwardingMultiset.StandardElementSet
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, Set<E>
- Enclosing class:
- ForwardingMultiset<E extends @Nullable Object>
A sensible implementation of 
Multiset.elementSet() in terms of the following methods:
ForwardingCollection.clear(), ForwardingCollection.contains(Object), ForwardingCollection.containsAll(Collection), ForwardingMultiset.count(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
- Author:
- Kevin Bourrillion, Louis Wasserman
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Methods inherited from class AbstractSetequals, hashCodeMethods inherited from interface CollectionparallelStream, removeIf, stream, toArray
- 
Constructor Details- 
StandardElementSetpublic StandardElementSet()Constructor for use by subclasses.
 
- 
- 
Method Details- 
iterator
- 
clear
- 
contains
- 
containsAll- Specified by:
- containsAllin interface- Collection<E extends @Nullable Object>
- Specified by:
- containsAllin interface- Set<E extends @Nullable Object>
- Overrides:
- containsAllin class- AbstractCollection<E extends @Nullable Object>
 
- 
isEmpty
- 
remove
- 
size
- 
removeAll
- 
retainAll
 
-