Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMultiset<E> |
ImmutableMultiset.Builder.build()
Returns a newly-created
ImmutableMultiset based on the contents
of the Builder . |
static <E> ImmutableMultiset<E> |
ImmutableMultiset.copyOf(E[] elements)
Returns an immutable multiset containing the given elements.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.copyOf(Iterable<? extends E> elements)
Returns an immutable multiset containing the given elements.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.copyOf(Iterator<? extends E> elements)
Returns an immutable multiset containing the given elements.
|
ImmutableMultiset<K> |
ImmutableMultimap.keys()
Returns a collection, which may contain duplicates, of all keys.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of()
Returns the empty immutable multiset.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of(E element)
Returns an immutable multiset containing a single element.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of(E[] elements)
Deprecated.
use
copyOf(Object[]) . This method is scheduled for
deletion in January 2012. |
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of(E e1,
E e2)
Returns an immutable multiset containing the given elements, in order.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of(E e1,
E e2,
E e3)
Returns an immutable multiset containing the given elements, in order.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of(E e1,
E e2,
E e3,
E e4)
Returns an immutable multiset containing the given elements, in order.
|
static <E> ImmutableMultiset<E> |
ImmutableMultiset.of(E e1,
E e2,
E e3,
E e4,
E e5)
Returns an immutable multiset containing the given elements, in order.
|
static <E> ImmutableMultiset<E> |
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 order.
|