Uses of Class
com.google.common.collect.ImmutableSortedMultiset
Packages that use ImmutableSortedMultiset
Package
Description
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
-
Uses of ImmutableSortedMultiset in com.google.common.collect
Methods in com.google.common.collect that return ImmutableSortedMultisetModifier and TypeMethodDescriptionImmutableSortedMultiset.Builder.build()
Returns a newly-createdImmutableSortedMultiset
based on the contents of theBuilder
.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.copyOf
(E[] elements) Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E> ImmutableSortedMultiset
<E> Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.copyOf
(Comparator<? super E> comparator, Iterable<? extends E> elements) Returns an immutable sorted multiset containing the given elements sorted by the givenComparator
.static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.copyOf
(Comparator<? super E> comparator, Iterator<? extends E> elements) Returns an immutable sorted multiset containing the given elements sorted by the givenComparator
.static <E> ImmutableSortedMultiset
<E> Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.copyOfSorted
(SortedMultiset<E> sortedMultiset) Returns an immutable sorted multiset containing the elements of a sorted multiset, sorted by the sameComparator
.ImmutableSortedMultiset.descendingMultiset()
abstract ImmutableSortedMultiset
<E> ImmutableSortedMultiset.headMultiset
(E upperBound, BoundType boundType) static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of()
Returns the empty immutable sorted multiset.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.of
(E element) Returns an immutable sorted multiset containing a single element.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.of
(E e1, E e2) Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3) Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3, E e4) Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3, E e4, E e5) Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.static <E extends Comparable<? super E>>
ImmutableSortedMultiset<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) Returns an immutable sorted multiset containing the given elements sorted by their natural ordering.ImmutableSortedMultiset.subMultiset
(E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) abstract ImmutableSortedMultiset
<E> ImmutableSortedMultiset.tailMultiset
(E lowerBound, BoundType boundType) Methods in com.google.common.collect that return types with arguments of type ImmutableSortedMultisetModifier and TypeMethodDescriptionstatic <E> Collector
<E, ?, ImmutableSortedMultiset<E>> ImmutableSortedMultiset.toImmutableSortedMultiset
(Comparator<? super E> comparator) Returns aCollector
that accumulates the input elements into a newImmutableMultiset
.static <T extends @Nullable Object,
E>
Collector<T, ?, ImmutableSortedMultiset<E>> ImmutableSortedMultiset.toImmutableSortedMultiset
(Comparator<? super E> comparator, Function<? super T, ? extends E> elementFunction, ToIntFunction<? super T> countFunction) Returns aCollector
that accumulates elements into anImmutableSortedMultiset
whose elements are the result of applyingelementFunction
to the inputs, with counts equal to the result of applyingcountFunction
to the inputs.