Uses of Class
com.google.common.collect.ImmutableMultiset
Packages that use ImmutableMultiset
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableMultiset in com.google.common.collect
Subclasses of ImmutableMultiset in com.google.common.collectModifier and TypeClassDescriptionclassASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.Methods in com.google.common.collect that return ImmutableMultisetModifier and TypeMethodDescriptionImmutableMultiset.Builder.build()Returns a newly-createdImmutableMultisetbased on the contents of theBuilder.static <E> ImmutableMultiset<E> Multisets.copyHighestCountFirst(Multiset<E> multiset) Returns a copy ofmultisetas anImmutableMultisetwhose iteration order puts the highest count first, with ties broken by the iteration order of the original multiset.static <E> ImmutableMultiset<E> ImmutableMultiset.copyOf(E[] elements) Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.static <E> ImmutableMultiset<E> Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.static <E> ImmutableMultiset<E> Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.final ImmutableMultiset<K> ImmutableMultimap.keys()Returns an immutable multiset containing all the keys in this multimap, in the same order and with the same frequencies as they appear in this multimap; to get only a single occurrence of each key, useImmutableMultimap.keySet().static <E> ImmutableMultiset<E> ImmutableMultiset.of()Returns the empty immutable multiset.static <E> ImmutableMultiset<E> ImmutableMultiset.of(E e1) Returns an immutable multiset containing a single element.static <E> ImmutableMultiset<E> ImmutableMultiset.of(E e1, E e2) Returns an immutable multiset containing the given elements, in order.static <E> ImmutableMultiset<E> ImmutableMultiset.of(E e1, E e2, E e3) Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.static <E> ImmutableMultiset<E> ImmutableMultiset.of(E e1, E e2, E e3, E e4) Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.static <E> ImmutableMultiset<E> ImmutableMultiset.of(E e1, E e2, E e3, E e4, E e5) Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.static <E> ImmutableMultiset<E> ImmutableMultiset.of(E e1, E e2, E e3, E e4, E e5, E e6, E... others) Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.final ImmutableMultiset<@NonNull E> FluentIterable.toMultiset()Returns anImmutableMultisetcontaining all of the elements from this fluent iterable.Methods in com.google.common.collect that return types with arguments of type ImmutableMultisetModifier and TypeMethodDescriptionstatic <E> Collector<E, ?, ImmutableMultiset<E>> ImmutableMultiset.toImmutableMultiset()Returns aCollectorthat accumulates the input elements into a newImmutableMultiset.static <T extends @Nullable Object, E>
Collector<T, ?, ImmutableMultiset<E>> ImmutableMultiset.toImmutableMultiset(Function<? super T, ? extends E> elementFunction, ToIntFunction<? super T> countFunction) Returns aCollectorthat accumulates elements into anImmutableMultisetwhose elements are the result of applyingelementFunctionto the inputs, with counts equal to the result of applyingcountFunctionto the inputs.static <E> Collector<E, ?, ImmutableMultiset<E>> ImmutableSortedMultiset.toImmutableMultiset()Deprecated.static <T extends @Nullable Object, E>
Collector<T, ?, ImmutableMultiset<E>> ImmutableSortedMultiset.toImmutableMultiset(Function<? super T, ? extends E> elementFunction, ToIntFunction<? super T> countFunction) Deprecated.Methods in com.google.common.collect with parameters of type ImmutableMultisetModifier and TypeMethodDescriptionstatic <E> Multiset<E> Multisets.unmodifiableMultiset(ImmutableMultiset<E> multiset) Deprecated.no need to use this
ImmutableSortedMultiset.toImmutableSortedMultiset(Comparator).