Package com.google.common.collect
Class ForwardingSortedMultiset.StandardDescendingMultiset
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingMultiset<E>
com.google.common.collect.DescendingMultiset<E>
com.google.common.collect.ForwardingSortedMultiset.StandardDescendingMultiset
- All Implemented Interfaces:
Multiset<E>
,SortedIterable<E>
,SortedMultiset<E>
,SortedMultisetBridge<E>
,Iterable<E>
,Collection<E>
- Enclosing class:
ForwardingSortedMultiset<E>
protected abstract class ForwardingSortedMultiset.StandardDescendingMultiset
extends DescendingMultiset<E>
A skeleton implementation of a descending multiset view. Normally,
DescendingMultiset.descendingMultiset()
will not reflect any changes you make to the behavior of methods such as
ForwardingCollection.add(Object)
or DescendingMultiset.pollFirstEntry()
. This skeleton implementation correctly
delegates each of its operations to the appropriate methods of this
ForwardingSortedMultiset
.
In many cases, you may wish to override DescendingMultiset.descendingMultiset()
to return an instance
of a subclass of StandardDescendingMultiset
.
- Since:
- 15.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMultiset
ForwardingMultiset.StandardElementSet
Nested classes/interfaces inherited from interface com.google.common.collect.Multiset
Multiset.Entry<E>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.DescendingMultiset
comparator, createEntrySet, delegate, descendingMultiset, elementSet, entryIterator, entrySet, firstEntry, headMultiset, iterator, lastEntry, pollFirstEntry, pollLastEntry, subMultiset, tailMultiset, toArray, toArray, toString
Methods inherited from class com.google.common.collect.ForwardingMultiset
add, count, equals, hashCode, remove, setCount, setCount, standardAdd, standardAddAll, standardClear, standardContains, standardCount, standardEquals, standardHashCode, standardIterator, standardRemove, standardRemoveAll, standardRetainAll, standardSetCount, standardSetCount, standardSize, standardToString
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, standardContainsAll, standardIsEmpty, standardToArray, standardToArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
addAll, clear, isEmpty, parallelStream, removeIf, stream, toArray
-
Constructor Details
-
StandardDescendingMultiset
public StandardDescendingMultiset()Constructor for use by subclasses.
-
-
Method Details
-
forwardMultiset
SortedMultiset<E> forwardMultiset()- Specified by:
forwardMultiset
in classDescendingMultiset<E>
-