| Modifier and Type | Field and Description |
|---|---|
| private final transient long[] | |
| pack-priv final transient RegularImmutableSortedSet | |
| private final transient int | |
| pack-priv static final ImmutableSortedMultiset | |
| private final transient int | |
| private static final long[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | RegularImmutableSortedMultiset(RegularImmutableSortedSet<E> elementSet, long[] cumulativeCounts, int offset, int length)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | count(Object
the element to count occurrences of element)Implements com. |
| public ImmutableSortedSet | elementSet()
Implements abstract com. Implements com. NavigableSet view of the distinct elements in this multiset.
|
| public Multiset. | firstEntry()
Implements com. null if this multiset is
empty.
|
| public void | forEachEntry(ObjIntConsumer<? super E> action)
Overrides default com. |
| private int | |
| pack-priv Multiset. | |
| pack-priv ImmutableSortedMultiset | |
| public ImmutableSortedMultiset | headMultiset(E upperBound, BoundType boundType)
Implements abstract com. Implements com. upperBound,
optionally including upperBound itself.
|
| pack-priv boolean | isPartialView()
Implements abstract com. true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods.
|
| public Multiset. | lastEntry()
Implements com. null if this multiset is
empty.
|
| public int | size()
Implements abstract java. Implements com. |
| public ImmutableSortedMultiset | tailMultiset(E lowerBound, BoundType boundType)
Implements abstract com. Implements com. lowerBound,
optionally including lowerBound itself.
|
| pack-priv Object |
| cumulativeCounts | back to summary |
|---|---|
| private final transient long[] cumulativeCounts | |
| elementSet | back to summary |
|---|---|
| pack-priv final transient RegularImmutableSortedSet<E> elementSet
| |
| length | back to summary |
|---|---|
| private final transient int length | |
| NATURAL_EMPTY_MULTISET | back to summary |
|---|---|
| pack-priv static final ImmutableSortedMultiset<?> NATURAL_EMPTY_MULTISET | |
| offset | back to summary |
|---|---|
| private final transient int offset | |
| ZERO_CUMULATIVE_COUNTS | back to summary |
|---|---|
| private static final long[] ZERO_CUMULATIVE_COUNTS | |
| RegularImmutableSortedMultiset | back to summary |
|---|---|
| pack-priv RegularImmutableSortedMultiset(Comparator<? super E> comparator) | |
| RegularImmutableSortedMultiset | back to summary |
|---|---|
| pack-priv RegularImmutableSortedMultiset(RegularImmutableSortedSet<E> elementSet, long[] cumulativeCounts, int offset, int length) | |
| count | back to summary |
|---|---|
| public int count(Object element) Implements com. Doc from com. Returns the number of occurrences of an element in this multiset (the count of the
element). Note that for an Note the utility method | |
| elementSet | back to summary |
|---|---|
| public ImmutableSortedSet Implements abstract 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
| |
| forEachEntry | back to summary |
|---|---|
| public void forEachEntry(ObjIntConsumer<? super E> action) Overrides default com. Doc from com. Runs the specified action for each distinct element in this multiset, and the number of
occurrences of that element. For some
| |
| getCount | back to summary |
|---|---|
| private int getCount(int index) | |
| getEntry | back to summary |
|---|---|
| pack-priv Multiset. Implements abstract com.
| |
| getSubMultiset | back to summary |
|---|---|
| pack-priv ImmutableSortedMultiset | |
| headMultiset | back to summary |
|---|---|
| public ImmutableSortedMultiset Implements abstract com. Implements com. Doc from com. Returns a view of this multiset restricted to the elements less than The returned multiset will throw an
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com. Doc from com. Returns
| |
| lastEntry | back to summary |
|---|---|
| public Multiset. Implements com. Doc from com. Returns the entry of the last element in this multiset, or
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements com. Doc from com. Returns the total number of all occurrences of all elements in this multiset. Note this method does not return the number of distinct elements in the
multiset, which is given by
| |
| tailMultiset | back to summary |
|---|---|
| public ImmutableSortedMultiset Implements abstract com. Implements com. Doc from com. Returns a view of this multiset restricted to the elements greater than The returned multiset will throw an
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |