Uses of Class
com.google.common.collect.ImmutableSortedMultiset
Packages that use ImmutableSortedMultiset
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Testing utilities.
-
Uses of ImmutableSortedMultiset in com.google.common.collect
Subclasses of ImmutableSortedMultiset in com.google.common.collectModifier and TypeClassDescription(package private) final class
A descending wrapper around anImmutableSortedMultiset
(package private) final class
An immutable sorted multiset with one or more distinct elements.Fields in com.google.common.collect declared as ImmutableSortedMultisetModifier and TypeFieldDescription(package private) ImmutableSortedMultiset
<E> ImmutableSortedMultiset.descendingMultiset
private final ImmutableSortedMultiset
<E> DescendingImmutableSortedMultiset.forward
(package private) static final ImmutableSortedMultiset
<?> RegularImmutableSortedMultiset.NATURAL_EMPTY_MULTISET
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 <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
.private static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.copyOfSortedEntries
(Comparator<? super E> comparator, Collection<Multiset.Entry<E>> entries) DescendingImmutableSortedMultiset.descendingMultiset()
ImmutableSortedMultiset.descendingMultiset()
(package private) static <E> ImmutableSortedMultiset
<E> ImmutableSortedMultiset.emptyMultiset
(Comparator<? super E> comparator) (package private) ImmutableSortedMultiset
<E> RegularImmutableSortedMultiset.getSubMultiset
(int from, int to) DescendingImmutableSortedMultiset.headMultiset
(E upperBound, BoundType boundType) abstract ImmutableSortedMultiset
<E> ImmutableSortedMultiset.headMultiset
(E upperBound, BoundType boundType) RegularImmutableSortedMultiset.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) DescendingImmutableSortedMultiset.tailMultiset
(E lowerBound, BoundType boundType) abstract ImmutableSortedMultiset
<E> ImmutableSortedMultiset.tailMultiset
(E lowerBound, BoundType boundType) RegularImmutableSortedMultiset.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,
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.Constructors in com.google.common.collect with parameters of type ImmutableSortedMultisetModifierConstructorDescription(package private)
-
Uses of ImmutableSortedMultiset in com.google.common.testing
Methods in com.google.common.testing that return ImmutableSortedMultisetModifier and TypeMethodDescription(package private) static <E extends Comparable<E>>
ImmutableSortedMultiset<E> FreshValueGenerator.generateImmutableSortedMultiset
(E freshElement)
Comparable
to usecopyOf(Comparable[])
.