Multiset instances.
See the Guava User Guide article on Multisets.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | Multisets.
Implementation of the |
| private static class | |
| pack-priv abstract static class | |
| pack-priv abstract static class | |
| private static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| private abstract static class | Multisets.
An |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <E extends @Nullable Object> boolean | |
| private static <E extends @Nullable Object> boolean | addAllImpl(Multiset<E> self, Multiset<? extends E> elements)
A specialization of |
| pack-priv static <T extends @Nullable Object> Multiset | |
| public static boolean | containsOccurrences(Multiset<?> superMultiset, Multiset<?> subMultiset)
Returns |
| public static <E> ImmutableMultiset | copyHighestCountFirst(Multiset<E> multiset)
Returns a copy of |
| public static <E extends @Nullable Object> Multiset | difference(final Multiset<E> multiset1, final Multiset<?> multiset2)
Returns an unmodifiable view of the difference of two multisets. |
| pack-priv static <E extends @Nullable Object> Iterator | |
| pack-priv static boolean | |
| public static <E extends @Nullable Object> Multiset | |
| public static <E extends @Nullable Object> Multiset. | immutableEntry(E
the element to be associated with the returned entry e, int the count to be associated with the returned entry n)Returns an immutable multiset entry with the specified element and count. |
| pack-priv static int | inferDistinctElements(Iterable<?> elements)
Returns the expected number of distinct elements given the specified elements. |
| public static <E extends @Nullable Object> Multiset | intersection(final Multiset<E> multiset1, final Multiset<?> multiset2)
Returns an unmodifiable view of the intersection of two multisets. |
| pack-priv static <E extends @Nullable Object> Iterator | |
| pack-priv static int | |
| pack-priv static boolean | removeAllImpl(Multiset<?> self, Collection<?> elementsToRemove)
An implementation of |
| public static boolean | Returns: true if multisetToModify was changed as a result of this operationFor each occurrence of an element |
| public static boolean | Returns: true if multisetToModify was changed as a result of this operationFor each occurrence of an element |
| pack-priv static boolean | retainAllImpl(Multiset<?> self, Collection<?> elementsToRetain)
An implementation of |
| public static boolean | Returns: true if multisetToModify was changed as a result of this operationModifies |
| private static <E extends @Nullable Object> boolean | retainOccurrencesImpl(Multiset<E> multisetToModify, Multiset<?> occurrencesToRetain)
Delegate implementation which cares about the element type. |
| pack-priv static <E extends @Nullable Object> int | setCountImpl(Multiset<E> self, E element, int count)
An implementation of |
| pack-priv static <E extends @Nullable Object> boolean | setCountImpl(Multiset<E> self, E element, int oldCount, int newCount)
An implementation of |
| pack-priv static <E extends @Nullable Object> Spliterator | |
| public static <E extends @Nullable Object> Multiset | |
| public static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset | toMultiset(Function<? super T, E> elementFunction, ToIntFunction<? super T> countFunction, Supplier<M> multisetSupplier)
Returns a |
| public static <E extends @Nullable Object> Multiset | |
| public static <E extends @Nullable Object> Multiset | Returns: an unmodifiable view of the multisetthe multiset for which an unmodifiable view is to be generated multiset)Returns an unmodifiable view of the specified multiset. |
| public static <E> Multiset | unmodifiableMultiset(ImmutableMultiset<E> multiset)
Deprecated
no need to use this
Simply returns its argument.
|
| public static <E extends @Nullable Object> SortedMultiset | Returns: an unmodifiable view of the multisetthe sorted multiset for which an unmodifiable view is to be generated sortedMultiset)Returns an unmodifiable view of the specified sorted multiset. |