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 |
ConcurrentHashMultiset<E>
A multiset that supports concurrent modifications and that provides atomic
versions of most
Multiset operations (exceptions where noted). |
class |
EnumMultiset<E extends Enum<E>>
Multiset implementation backed by an
EnumMap . |
class |
ForwardingMultiset<E>
A multiset which forwards all its method calls to another multiset.
|
class |
HashMultiset<E>
Multiset implementation backed by a
HashMap . |
class |
ImmutableMultiset<E>
An immutable hash-based multiset.
|
class |
LinkedHashMultiset<E>
A
Multiset implementation with predictable iteration order. |
class |
TreeMultiset<E>
A multiset which maintains the ordering of its elements, according to either
their natural order or an explicit
Comparator . |
Modifier and Type | Method and Description |
---|---|
static <E> Multiset<E> |
Constraints.constrainedMultiset(Multiset<E> multiset,
Constraint<? super E> constraint)
Returns a constrained view of the specified multiset, using the specified
constraint.
|
protected abstract Multiset<E> |
ForwardingMultiset.delegate() |
static <E> Multiset<E> |
Multisets.intersection(Multiset<E> multiset1,
Multiset<?> multiset2)
Returns an unmodifiable view of the intersection of two multisets.
|
Multiset<K> |
LinkedListMultimap.keys() |
Multiset<K> |
ForwardingMultimap.keys() |
Multiset<K> |
Multimap.keys()
Returns a collection, which may contain duplicates, of all keys.
|
static <E> Multiset<E> |
Multisets.unmodifiableMultiset(Multiset<? extends E> multiset)
Returns an unmodifiable view of the specified multiset.
|
Modifier and Type | Method and Description |
---|---|
static <E> Multiset<E> |
Constraints.constrainedMultiset(Multiset<E> multiset,
Constraint<? super E> constraint)
Returns a constrained view of the specified multiset, using the specified
constraint.
|
static <E> Multiset<E> |
Multisets.intersection(Multiset<E> multiset1,
Multiset<?> multiset2)
Returns an unmodifiable view of the intersection of two multisets.
|
static <E> Multiset<E> |
Multisets.intersection(Multiset<E> multiset1,
Multiset<?> multiset2)
Returns an unmodifiable view of the intersection of two multisets.
|
static <E> Multiset<E> |
Multisets.unmodifiableMultiset(Multiset<? extends E> multiset)
Returns an unmodifiable view of the specified multiset.
|