forwardMultiset() and
entryIterator().
| Modifier and Type | Field and Description |
|---|---|
| private transient Comparator | |
| private transient NavigableSet | |
| private transient Set |
| Access | Constructor and Description |
|---|---|
| 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 Set | |
| protected Multiset | delegate()
Implements abstract com. |
| public SortedMultiset | descendingMultiset()
Implements com. |
| public NavigableSet | elementSet()
Overrides com. Implements com. NavigableSet view of the distinct elements in this multiset.
|
| pack-priv abstract Iterator | |
| public Set | entrySet()
Overrides com. Implements com. Multiset.Entry instances,
each providing an element of the multiset and the count of that element.
|
| public Multiset. | firstEntry()
Implements com. null if this multiset is
empty.
|
| pack-priv abstract SortedMultiset | |
| public SortedMultiset | headMultiset(E toElement, BoundType boundType)
Implements com. upperBound,
optionally including upperBound itself.
|
| public Iterator | iterator()
Overrides com. Implements com. T.
|
| 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.
|
| public SortedMultiset | tailMultiset(E fromElement, BoundType boundType)
Implements com. lowerBound,
optionally including lowerBound itself.
|
| public @Nullable Object[] | toArray()
Overrides com. Implements java. |
| public <T extends @Nullable Object> T[] | toArray(T[]
the array into which the elements of this collection are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. array)Overrides com. Implements java. |
| public String | toString()
Overrides com. Implements com. It is recommended, though not mandatory, that this method return the result of invoking
|
| comparator | back to summary |
|---|---|
| private transient Comparator<? super E> comparator
| |
| elementSet | back to summary |
|---|---|
| private transient NavigableSet<E> elementSet
| |
| entrySet | back to summary |
|---|---|
| private transient Set<Multiset. | |
| DescendingMultiset | back to summary |
|---|---|
| pack-priv DescendingMultiset() | |
| comparator | back to summary |
|---|---|
| public Comparator Implements com. Doc from com. Returns the comparator that orders this multiset, or
| |
| createEntrySet | back to summary |
|---|---|
| pack-priv Set | |
| delegate | back to summary |
|---|---|
| protected Multiset Implements abstract com. Doc from com. Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
generally override this method with an abstract method that has a more specific return type,
such as
| |
| 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
| |
| entryIterator | back to summary |
|---|---|
| pack-priv abstract Iterator | |
| entrySet | back to summary |
|---|---|
| public Set Overrides com. Implements com. Doc from com. Returns a view of the contents of this multiset, grouped into The entry set is backed by the same data as the multiset, so any change to either is
immediately reflected in the other. However, multiset changes may or may not be reflected in
any The
| |
| firstEntry | back to summary |
|---|---|
| public Multiset. Implements com. Doc from com. Returns the entry of the first element in this multiset, or
| |
| forwardMultiset | back to summary |
|---|---|
| pack-priv abstract SortedMultiset | |
| headMultiset | back to summary |
|---|---|
| public SortedMultiset Implements com. Doc from com. Returns a view of this multiset restricted to the elements less than The returned multiset will throw an
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides com. Implements com. Doc from com. Returns an iterator over elements of type The iterator returns the elements in ascending order according to this multiset's comparator.
| |
| 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
| |
| tailMultiset | back to summary |
|---|---|
| public SortedMultiset Implements com. Doc from com. Returns a view of this multiset restricted to the elements greater than The returned multiset will throw an
| |
| toArray | back to summary |
|---|---|
| public @Nullable Object[] toArray() Overrides com. Implements java. Doc from java. Returns an array containing all of the elements in this collection.
If this collection makes any guarantees as to what order its elements
are returned by its iterator, this method must return the elements in
the same order. The returned array's runtime component type is The returned array will be "safe" in that no references to it are maintained by this collection. (In other words, this method must allocate a new array even if this collection is backed by an array). The caller is thus free to modify the returned array.
| |
| toArray | back to summary |
|---|---|
| public <T extends @Nullable Object> T[] toArray(T[] array) Overrides com. Implements java. Doc from java. Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. If the collection fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this collection. If this collection fits in the specified array with room to spare
(i.e., the array has more elements than this collection), the element
in the array immediately following the end of the collection is set to
If this collection makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Implements com. Doc from com.
It is recommended, though not mandatory, that this method return the result of invoking
| |