Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DescendingImmutableSortedMultiset<E>
A descending wrapper around an
ImmutableSortedMultiset |
(package private) class |
RegularImmutableSortedMultiset<E>
An immutable sorted multiset with one or more distinct elements.
|
Modifier and Type | Field and Description |
---|---|
(package private) ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.descendingMultiset |
private ImmutableSortedMultiset<E> |
DescendingImmutableSortedMultiset.forward |
(package private) static ImmutableSortedMultiset<java.lang.Comparable> |
RegularImmutableSortedMultiset.NATURAL_EMPTY_MULTISET |
Modifier and Type | Method and Description |
---|---|
ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.Builder.build()
Returns a newly-created
ImmutableSortedMultiset based on the contents of the Builder . |
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.copyOf(java.util.Comparator<? super E> comparator,
java.lang.Iterable<? extends E> elements)
Returns an immutable sorted multiset containing the given elements sorted by the given
Comparator . |
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.copyOf(java.util.Comparator<? super E> comparator,
java.util.Iterator<? extends E> elements)
Returns an immutable sorted multiset containing the given elements sorted by the given
Comparator . |
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultisetFauxverideShim.copyOf(E[] elements)
Deprecated.
Pass parameters of type
Comparable to use copyOf(Comparable[]) . |
static <E extends java.lang.Comparable<? super E>> |
ImmutableSortedMultiset.copyOf(E[] elements)
Returns an immutable sorted multiset containing the given elements sorted by their natural
ordering.
|
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.copyOf(java.lang.Iterable<? extends E> elements)
Returns an immutable sorted multiset containing the given elements sorted by their natural
ordering.
|
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.copyOf(java.util.Iterator<? extends E> elements)
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 same
Comparator . |
private static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.copyOfSortedEntries(java.util.Comparator<? super E> comparator,
java.util.Collection<Multiset.Entry<E>> entries) |
ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.descendingMultiset() |
ImmutableSortedMultiset<E> |
DescendingImmutableSortedMultiset.descendingMultiset() |
(package private) static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.emptyMultiset(java.util.Comparator<? super E> comparator) |
(package private) ImmutableSortedMultiset<E> |
RegularImmutableSortedMultiset.getSubMultiset(int from,
int to) |
ImmutableSortedMultiset<E> |
RegularImmutableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
abstract ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
ImmutableSortedMultiset<E> |
DescendingImmutableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.of()
Returns the empty immutable sorted multiset.
|
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultisetFauxverideShim.of(E element)
Deprecated.
Pass a parameter of type
Comparable to use of(Comparable) . |
static <E extends java.lang.Comparable<? super E>> |
ImmutableSortedMultiset.of(E element)
Returns an immutable sorted multiset containing a single element.
|
static <E> ImmutableSortedMultiset<E> |
ImmutableSortedMultisetFauxverideShim.of(E e1,
E e2)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable) . |
static <E extends java.lang.Comparable<? super 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> |
ImmutableSortedMultisetFauxverideShim.of(E e1,
E e2,
E e3)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable) . |
static <E extends java.lang.Comparable<? super 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> |
ImmutableSortedMultisetFauxverideShim.of(E e1,
E e2,
E e3,
E e4)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable, Comparable) . |
static <E extends java.lang.Comparable<? super 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> |
ImmutableSortedMultisetFauxverideShim.of(E e1,
E e2,
E e3,
E e4,
E e5)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable, Comparable, Comparable) .
|
static <E extends java.lang.Comparable<? super 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> |
ImmutableSortedMultisetFauxverideShim.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E... remaining)
Deprecated.
Pass the parameters of type
Comparable to use of(Comparable, Comparable, Comparable, Comparable, Comparable,
Comparable, Comparable...) . |
static <E extends java.lang.Comparable<? super 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<E> |
ImmutableSortedMultiset.subMultiset(E lowerBound,
BoundType lowerBoundType,
E upperBound,
BoundType upperBoundType) |
ImmutableSortedMultiset<E> |
RegularImmutableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
abstract ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
ImmutableSortedMultiset<E> |
DescendingImmutableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
Modifier and Type | Method and Description |
---|---|
static <E> java.util.stream.Collector<E,?,ImmutableSortedMultiset<E>> |
ImmutableSortedMultiset.toImmutableSortedMultiset(java.util.Comparator<? super E> comparator)
Returns a
Collector that accumulates the input elements into a new ImmutableMultiset . |
static <T,E> java.util.stream.Collector<T,?,ImmutableSortedMultiset<E>> |
ImmutableSortedMultiset.toImmutableSortedMultiset(java.util.Comparator<? super E> comparator,
java.util.function.Function<? super T,? extends E> elementFunction,
java.util.function.ToIntFunction<? super T> countFunction)
Returns a
Collector that accumulates elements into an ImmutableSortedMultiset
whose elements are the result of applying elementFunction to the inputs, with counts
equal to the result of applying countFunction to the inputs. |
Constructor and Description |
---|
DescendingImmutableSortedMultiset(ImmutableSortedMultiset<E> forward) |
Modifier and Type | Method and Description |
---|---|
(package private) static <E extends java.lang.Comparable<E>> |
FreshValueGenerator.generateImmutableSortedMultiset(E freshElement) |