Uses of Class
com.google.common.collect.ImmutableMultiset
-
Packages that use ImmutableMultiset Package Description com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names).com.google.common.testing This package contains testing utilities. -
-
Uses of ImmutableMultiset in com.google.common.collect
Subclasses of ImmutableMultiset in com.google.common.collect Modifier and Type Class Description (package private) classDescendingImmutableSortedMultiset<E>A descending wrapper around anImmutableSortedMultiset(package private) classImmutableMultimap.KeysclassImmutableSortedMultiset<E>ASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) classImmutableSortedMultisetFauxverideShim<E>"Overrides" theImmutableMultisetstatic methods that lackImmutableSortedMultisetequivalents with deprecated, exception-throwing versions.(package private) classJdkBackedImmutableMultiset<E>An implementation of ImmutableMultiset backed by a JDK Map and a list of entries.(package private) classRegularImmutableMultiset<E>Implementation ofImmutableMultisetwith zero or more elements.(package private) classRegularImmutableSortedMultiset<E>An immutable sorted multiset with one or more distinct elements.Fields in com.google.common.collect declared as ImmutableMultiset Modifier and Type Field Description (package private) static ImmutableMultiset<java.lang.Object>RegularImmutableMultiset. EMPTY(package private) ImmutableMultiset<E>ImmutableMultiset.EntrySetSerializedForm. multisetMethods in com.google.common.collect that return ImmutableMultiset Modifier and Type Method Description ImmutableMultiset<E>ImmutableMultiset.Builder. build()Returns a newly-createdImmutableMultisetbased on the contents of theBuilder.(package private) ImmutableMultiset<E>ImmutableMultiset.Builder. buildJdkBacked()private static <E> ImmutableMultiset<E>ImmutableMultiset. copyFromElements(E... elements)(package private) static <E> ImmutableMultiset<E>ImmutableMultiset. copyFromEntries(java.util.Collection<? extends Multiset.Entry<? extends E>> entries)static <E> ImmutableMultiset<E>Multisets. copyHighestCountFirst(Multiset<E> multiset)Returns a copy ofmultisetas anImmutableMultisetwhose iteration order is 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>ImmutableMultiset. copyOf(java.lang.Iterable<? extends E> elements)Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.static <E> ImmutableMultiset<E>ImmutableMultiset. copyOf(java.util.Iterator<? extends E> elements)Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.(package private) static <E> ImmutableMultiset<E>JdkBackedImmutableMultiset. create(java.util.Collection<? extends Multiset.Entry<? extends E>> entries)(package private) static <E> ImmutableMultiset<E>RegularImmutableMultiset. create(java.util.Collection<? extends Multiset.Entry<? extends E>> entries)(package private) ImmutableMultiset<K>ImmutableMultimap. createKeys()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 element)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.ImmutableMultiset<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 ImmutableMultiset Modifier and Type Method Description (package private) static <T,E>
java.util.stream.Collector<T,?,ImmutableMultiset<E>>CollectCollectors. toImmutableMultiset(java.util.function.Function<? super T,? extends E> elementFunction, java.util.function.ToIntFunction<? super T> countFunction)static <E> java.util.stream.Collector<E,?,ImmutableMultiset<E>>ImmutableMultiset. toImmutableMultiset()Returns aCollectorthat accumulates the input elements into a newImmutableMultiset.static <T,E>
java.util.stream.Collector<T,?,ImmutableMultiset<E>>ImmutableMultiset. toImmutableMultiset(java.util.function.Function<? super T,? extends E> elementFunction, java.util.function.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> java.util.stream.Collector<E,?,ImmutableMultiset<E>>ImmutableSortedMultisetFauxverideShim. toImmutableMultiset()static <T,E>
java.util.stream.Collector<T,?,ImmutableMultiset<E>>ImmutableSortedMultisetFauxverideShim. toImmutableMultiset(java.util.function.Function<? super T,? extends E> elementFunction, java.util.function.ToIntFunction<? super T> countFunction)Methods in com.google.common.collect with parameters of type ImmutableMultiset Modifier and Type Method Description static <E> Multiset<E>Multisets. unmodifiableMultiset(ImmutableMultiset<E> multiset)Deprecated.no need to use thisConstructors in com.google.common.collect with parameters of type ImmutableMultiset Constructor Description EntrySetSerializedForm(ImmutableMultiset<E> multiset) -
Uses of ImmutableMultiset in com.google.common.net
Methods in com.google.common.net that return types with arguments of type ImmutableMultiset Modifier and Type Method Description private java.util.Map<java.lang.String,ImmutableMultiset<java.lang.String>>MediaType. parametersAsMap() -
Uses of ImmutableMultiset in com.google.common.testing
Methods in com.google.common.testing that return ImmutableMultiset Modifier and Type Method Description private static <E> ImmutableMultiset<E>FreshValueGenerator. generateImmutableMultiset(E freshElement)
-