Package com.google.common.collect
Class ForwardingSortedMultiset.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.SortedMultisets.ElementSet<E>
-
- com.google.common.collect.SortedMultisets.NavigableElementSet<E>
-
- com.google.common.collect.ForwardingSortedMultiset.StandardElementSet
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.NavigableSet<E>,java.util.Set<E>,java.util.SortedSet<E>
- Enclosing class:
- ForwardingSortedMultiset<E>
protected class ForwardingSortedMultiset.StandardElementSet extends SortedMultisets.NavigableElementSet<E>
A sensible implementation ofSortedMultiset.elementSet()in terms of the following methods:Collection.clear(),SortedMultiset.comparator(),Multiset.contains(java.lang.Object),Multiset.containsAll(java.util.Collection<?>),Multiset.count(java.lang.Object),SortedMultiset.firstEntry()SortedMultiset.headMultiset(E, com.google.common.collect.BoundType),Collection.isEmpty(),SortedMultiset.lastEntry(),SortedMultiset.subMultiset(E, com.google.common.collect.BoundType, E, com.google.common.collect.BoundType),SortedMultiset.tailMultiset(E, com.google.common.collect.BoundType), thesize()anditerator()methods ofSortedMultiset.entrySet(), andMultiset.remove(Object, int). In many situations, you may wish to overrideSortedMultiset.elementSet()to forward to this implementation or a subclass thereof.- Since:
- 15.0
-
-
Constructor Summary
Constructors Constructor Description StandardElementSet()Constructor for use by subclasses.
-
Method Summary
-
Methods inherited from class com.google.common.collect.SortedMultisets.NavigableElementSet
ceiling, descendingIterator, descendingSet, floor, headSet, higher, lower, pollFirst, pollLast, subSet, tailSet
-
Methods inherited from class com.google.common.collect.SortedMultisets.ElementSet
comparator, first, headSet, iterator, last, multiset, subSet, tailSet
-
Methods inherited from class com.google.common.collect.Multisets.ElementSet
clear, contains, containsAll, isEmpty, remove, size
-
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAll
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-