| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private transient ImmutableSet | |
| private final ImmutableList | |
| private final long |
| Access | Constructor and Description |
|---|---|
| private | JdkBackedImmutableMultiset(Map<E, Integer> delegateMap, ImmutableList<Multiset.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | count(Object
the element to count occurrences of element)Implements com. |
| pack-priv static <E> ImmutableMultiset | |
| public ImmutableSet | elementSet()
Implements abstract com. Implements com. |
| pack-priv Multiset. | |
| 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 int | size()
Implements abstract java. Implements com. |
| pack-priv Object |
| delegateMap | back to summary |
|---|---|
| private final Map<E, Integer> delegateMap | |
| elementSet | back to summary |
|---|---|
| private transient ImmutableSet<E> elementSet
| |
| entries | back to summary |
|---|---|
| private final ImmutableList<Multiset. | |
| size | back to summary |
|---|---|
| private final long size | |
| JdkBackedImmutableMultiset | back to summary |
|---|---|
| private JdkBackedImmutableMultiset(Map<E, Integer> delegateMap, ImmutableList<Multiset. | |
| 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 | |
| create | back to summary |
|---|---|
| pack-priv static <E> ImmutableMultiset | |
| elementSet | back to summary |
|---|---|
| public ImmutableSet Implements abstract com. Implements com. Doc from com. Returns the set of distinct elements contained in this multiset. The element set is backed by the same data as the multiset, so any change to either is immediately reflected in the other. The order of the elements in the element set is unspecified. If the element set supports any removal operations, these necessarily cause all occurrences of the removed element(s) to be removed from the multiset. Implementations are not expected to support the add operations, although this is possible. A common use for the element set is to find the number of distinct elements in the multiset:
| |
| getEntry | back to summary |
|---|---|
| pack-priv Multiset. Implements abstract com.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com. Doc from com. Returns
| |
| 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
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |