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>
,java.lang.Iterable<E>
,java.util.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 asForwardingCollection.add(Object)
orDescendingMultiset.pollFirstEntry()
. This skeleton implementation correctly delegates each of its operations to the appropriate methods of thisForwardingSortedMultiset
.In many cases, you may wish to override
DescendingMultiset.descendingMultiset()
to return an instance of a subclass ofStandardDescendingMultiset
.- 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 Constructor Description StandardDescendingMultiset()
Constructor for use by subclasses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) SortedMultiset<E>
forwardMultiset()
-
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
-
-
-
-
Method Detail
-
forwardMultiset
SortedMultiset<E> forwardMultiset()
- Specified by:
forwardMultiset
in classDescendingMultiset<E>
-
-