Uses of Class
com.google.common.collect.ImmutableSortedMultiset
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ImmutableSortedMultiset in com.google.common.collect
Modifier 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 <Z> ImmutableSortedMultiset
<Z> ImmutableSortedMultiset.copyOf
(Z[] elements) Deprecated.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 e1) Returns an immutable sorted multiset containing a single element.static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of
(E e1) Deprecated.Pass a parameter of typeComparable
to useof(Comparable)
.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> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of
(E e1, E e2) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable)
.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> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable)
.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> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3, E e4) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable, Comparable)
.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> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3, E e4, E e5) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable, Comparable, Comparable)
.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.static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.of
(E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) Deprecated.Pass the parameters of typeComparable
to useof(Comparable, Comparable, Comparable, Comparable, Comparable, Comparable, Comparable...)
.ImmutableSortedMultiset.subMultiset
(E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) abstract ImmutableSortedMultiset
<E> ImmutableSortedMultiset.tailMultiset
(E lowerBound, BoundType boundType) Modifier 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.
Comparable
to usecopyOf(Comparable[])
.