| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableSortedMultiset<E>
A
SortedMultiset whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableMultiset |
ImmutableMultiset.Builder.build()
Returns a newly-created
ImmutableMultiset based on the contents of the
Builder.
|
static <E> ImmutableMultiset |
Multisets.copyHighestCountFirst(Multiset
Returns a copy of
multiset as an
ImmutableMultiset whose iteration order is highest count first, with ties broken by the iteration order of the original multiset.
|
static <E> ImmutableMultiset |
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 |
ImmutableMultiset.copyOf(Iterable
Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.
|
static <E> ImmutableMultiset |
ImmutableMultiset.copyOf(Iterator
Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.
|
ImmutableMultiset |
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, use
ImmutableMultimap.
|
static <E> ImmutableMultiset |
ImmutableMultiset.of()
Returns the empty immutable multiset.
|
static <E> ImmutableMultiset |
ImmutableMultiset.of(E element)
Returns an immutable multiset containing a single element.
|
static <E> ImmutableMultiset |
ImmutableMultiset.of(E e1, E e2)
Returns an immutable multiset containing the given elements, in order.
|
static <E> ImmutableMultiset |
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 |
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 |
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 |
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 |
FluentIterable.toMultiset()
Returns an
ImmutableMultiset containing all of the elements from this fluent iterable.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Multiset |
Multisets.unmodifiableMultiset(ImmutableMultiset
Deprecated.
no need to use this
|