| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SortedSetMultimap<K
A
SetMultimap whose set of values for a given key are kept sorted; that is, they comprise a
SortedSet.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ForwardingSetMultimap<K
A set multimap which forwards all its method calls to another set multimap.
|
class |
ForwardingSortedSetMultimap<K
A sorted set multimap which forwards all its method calls to another sorted set multimap.
|
class |
HashMultimap<K
Implementation of
Multimap using hash tables.
|
class |
ImmutableSetMultimap<K
An immutable
SetMultimap with reliable user-specified key and value iteration order.
|
class |
LinkedHashMultimap<K
Implementation of
Multimap that does not allow duplicate key-value entries and that returns collections whose iterators follow the ordering in which the data was added to the multimap.
|
class |
TreeMultimap<K
Implementation of
Multimap whose keys and values are ordered by their natural ordering or by supplied comparators.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <K extends K0 |
MultimapBuilder.SetMultimapBuilder.build()
|
<K extends K0 |
MultimapBuilder.SetMultimapBuilder.build(Multimap
|
static <K |
MapConstraints.constrainedSetMultimap(SetMultimap
Returns a constrained view of the specified set multimap, using the specified constraint.
|
protected abstract SetMultimap |
ForwardingSetMultimap.delegate()
|
static <K |
Multimaps.filterEntries(SetMultimap
Returns a multimap containing the mappings in
unfiltered that satisfy a predicate.
|
static <K |
Multimaps.filterKeys(SetMultimap
Returns a multimap containing the mappings in
unfiltered whose keys satisfy a predicate.
|
static <K |
Multimaps.filterValues(SetMultimap
Returns a multimap containing the mappings in
unfiltered whose values satisfy a predicate.
|
static <K |
Multimaps.forMap(Map
Returns a multimap view of the specified map.
|
static <K |
Multimaps.newSetMultimap(Map
Creates a new
SetMultimap that uses the provided map and factory.
|
static <K |
Multimaps.synchronizedSetMultimap(SetMultimap
Returns a synchronized (thread-safe)
SetMultimap backed by the specified multimap.
|
static <K |
Multimaps.unmodifiableSetMultimap(ImmutableSetMultimap
Deprecated.
no need to use this
|
static <K |
Multimaps.unmodifiableSetMultimap(SetMultimap
Returns an unmodifiable view of the specified
SetMultimap.
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
Multimaps.asMap(SetMultimap
|
static <K |
MapConstraints.constrainedSetMultimap(SetMultimap
Returns a constrained view of the specified set multimap, using the specified constraint.
|
static <K |
Multimaps.filterEntries(SetMultimap
Returns a multimap containing the mappings in
unfiltered that satisfy a predicate.
|
static <K |
Multimaps.filterKeys(SetMultimap
Returns a multimap containing the mappings in
unfiltered whose keys satisfy a predicate.
|
static <K |
Multimaps.filterValues(SetMultimap
Returns a multimap containing the mappings in
unfiltered whose values satisfy a predicate.
|
static <K |
Multimaps.synchronizedSetMultimap(SetMultimap
Returns a synchronized (thread-safe)
SetMultimap backed by the specified multimap.
|
static <K |
Multimaps.unmodifiableSetMultimap(SetMultimap
Returns an unmodifiable view of the specified
SetMultimap.
|