SortedMultiset interface.
The count and size implementations all iterate across the set returned by
Multiset#entrySet(), as do many methods acting on the set returned by elementSet(). Override those methods for better performance.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Comparator | |
| private transient SortedMultiset |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements com. Ordering#natural() if the natural
ordering of the elements is used.
|
| pack-priv SortedMultiset | |
| pack-priv NavigableSet | createElementSet()
Overrides com. elementSet().
|
| pack-priv abstract Iterator | |
| pack-priv Iterator | |
| public SortedMultiset | descendingMultiset()
Implements com. |
| public NavigableSet | elementSet()
Overrides com. Implements com. NavigableSet view of the distinct elements in this multiset.
|
| public Multiset. | firstEntry()
Implements com. null if this multiset is
empty.
|
| public Multiset. | lastEntry()
Implements com. null if this multiset is
empty.
|
| public Multiset. | pollFirstEntry()
Implements com. null if this multiset is empty.
|
| public Multiset. | pollLastEntry()
Implements com. null if this multiset is empty.
|
| public SortedMultiset | subMultiset(E fromElement, BoundType fromBoundType, E toElement, BoundType toBoundType)
Implements com. lowerBound and upperBound.
|
| comparator | back to summary |
|---|---|
| pack-priv final Comparator<? super E> comparator
| |
| descendingMultiset | back to summary |
|---|---|
| private transient SortedMultiset<E> descendingMultiset
| |
| AbstractSortedMultiset | back to summary |
|---|---|
pack-priv AbstractSortedMultiset()
| |
| AbstractSortedMultiset | back to summary |
|---|---|
| pack-priv AbstractSortedMultiset(Comparator<? super E> comparator) | |
| comparator | back to summary |
|---|---|
| public Comparator Implements com. Doc from com. Returns the comparator that orders this multiset, or
| |
| createDescendingMultiset | back to summary |
|---|---|
| pack-priv SortedMultiset | |
| createElementSet | back to summary |
|---|---|
| pack-priv NavigableSet Overrides com. Doc from com. Creates a new instance of this multiset's element set, which will be returned by
| |
| descendingEntryIterator | back to summary |
|---|---|
| pack-priv abstract Iterator | |
| descendingIterator | back to summary |
|---|---|
| pack-priv Iterator | |
| descendingMultiset | back to summary |
|---|---|
| public SortedMultiset Implements com. Doc from com. Returns a descending view of this multiset. Modifications made to either map will be reflected in the other.
| |
| elementSet | back to summary |
|---|---|
| public NavigableSet Overrides com. Implements com. Doc from com. Returns a
| |
| firstEntry | back to summary |
|---|---|
| public Multiset. Implements com. Doc from com. Returns the entry of the first element in this multiset, or
| |
| lastEntry | back to summary |
|---|---|
| public Multiset. Implements com. Doc from com. Returns the entry of the last element in this multiset, or
| |
| pollFirstEntry | back to summary |
|---|---|
| public Multiset. Implements com. Doc from com. Returns and removes the entry associated with the lowest element in this multiset, or returns
| |
| pollLastEntry | back to summary |
|---|---|
| public Multiset. Implements com. Doc from com. Returns and removes the entry associated with the greatest element in this multiset, or returns
| |
| subMultiset | back to summary |
|---|---|
| public SortedMultiset Implements com. Doc from com. Returns a view of this multiset restricted to the range between The returned multiset will throw an This method is equivalent to
| |