| Package | Description |
|---|---|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| com.google.common.net |
This package contains utility methods and classes for working with net addresses (numeric IP and domain names).
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ListMultimap<K
A
Multimap that can hold duplicate key-value pairs and that maintains the insertion ordering of values for a given key.
|
interface |
SetMultimap<K
A
Multimap that cannot hold duplicate key-value pairs.
|
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 |
ArrayListMultimap<K
Implementation of
Multimap that uses an
ArrayList to store the values for a given key.
|
class |
ForwardingListMultimap<K
A list multimap which forwards all its method calls to another list multimap.
|
class |
ForwardingMultimap<K
A multimap which forwards all its method calls to another multimap.
|
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 |
ImmutableListMultimap<K
An immutable
ListMultimap with reliable user-specified key and value iteration order.
|
class |
ImmutableMultimap<K
An immutable
Multimap.
|
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 |
LinkedListMultimap<K
An implementation of
ListMultimap that supports deterministic iteration order for both keys and values.
|
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 |
|---|---|
static <K |
Multimaps.invertFrom(Multimap
Copies each key-value mapping in
source into
dest, with its key and value reversed.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <K extends K0 |
MultimapBuilder.build()
Returns a new, empty
Multimap with the specified implementation.
|
<K extends K0 |
MultimapBuilder.build(Multimap
Returns a
Multimap with the specified implementation, initialized with the entries of
multimap.
|
static <K |
MapConstraints.constrainedMultimap(Multimap
Returns a constrained view of the specified multimap, using the specified constraint.
|
protected abstract Multimap |
ForwardingMultimap.delegate()
|
static <K |
Multimaps.filterEntries(Multimap
Returns a multimap containing the mappings in
unfiltered that satisfy a predicate.
|
static <K |
Multimaps.filterKeys(Multimap
Returns a multimap containing the mappings in
unfiltered whose keys satisfy a predicate.
|
static <K |
Multimaps.filterValues(Multimap
Returns a multimap containing the mappings in
unfiltered whose values satisfy a predicate.
|
static <K |
Multimaps.newMultimap(Map
Creates a new
Multimap backed by
map, whose internal value collections are generated by
factory.
|
static <K |
Multimaps.synchronizedMultimap(Multimap
Returns a synchronized (thread-safe) multimap backed by the specified multimap.
|
static <K |
Multimaps.transformEntries(Multimap
Returns a view of a multimap whose values are derived from the original multimap's entries.
|
static <K |
Multimaps.transformValues(Multimap
Returns a view of a multimap where each value is transformed by a function.
|
static <K |
Multimaps.unmodifiableMultimap(ImmutableMultimap
Deprecated.
no need to use this
|
static <K |
Multimaps.unmodifiableMultimap(Multimap
Returns an unmodifiable view of the specified multimap.
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
Multimaps.asMap(Multimap
Returns
multimap.asMap().
|
<K extends K0 |
MultimapBuilder.build(Multimap
Returns a
Multimap with the specified implementation, initialized with the entries of
multimap.
|
<K extends K0 |
MultimapBuilder.ListMultimapBuilder.build(Multimap
|
<K extends K0 |
MultimapBuilder.SetMultimapBuilder.build(Multimap
|
<K extends K0 |
MultimapBuilder.SortedSetMultimapBuilder.build(Multimap
|
static <K |
MapConstraints.constrainedMultimap(Multimap
Returns a constrained view of the specified multimap, using the specified constraint.
|
static <K |
ImmutableSetMultimap.copyOf(Multimap
Returns an immutable set multimap containing the same mappings as
multimap.
|
static <K |
ImmutableMultimap.copyOf(Multimap
Returns an immutable multimap containing the same mappings as
multimap.
|
static <K |
ImmutableListMultimap.copyOf(Multimap
Returns an immutable multimap containing the same mappings as
multimap.
|
static <K extends Comparable |
TreeMultimap.create(Multimap
Constructs a
TreeMultimap, ordered by the natural ordering of its keys and values, with the same mappings as the specified multimap.
|
static <K |
LinkedHashMultimap.create(Multimap
Constructs a
LinkedHashMultimap with the same mappings as the specified multimap.
|
static <K |
ArrayListMultimap.create(Multimap
Constructs an
ArrayListMultimap with the same mappings as the specified multimap.
|
static <K |
LinkedListMultimap.create(Multimap
Constructs a
LinkedListMultimap with the same mappings as the specified
Multimap.
|
static <K |
HashMultimap.create(Multimap
Constructs a
HashMultimap with the same mappings as the specified multimap.
|
static <K |
Multimaps.filterEntries(Multimap
Returns a multimap containing the mappings in
unfiltered that satisfy a predicate.
|
static <K |
Multimaps.filterKeys(Multimap
Returns a multimap containing the mappings in
unfiltered whose keys satisfy a predicate.
|
static <K |
Multimaps.filterValues(Multimap
Returns a multimap containing the mappings in
unfiltered whose values satisfy a predicate.
|
static <K |
Multimaps.invertFrom(Multimap
Copies each key-value mapping in
source into
dest, with its key and value reversed.
|
ImmutableSetMultimap |
ImmutableSetMultimap.Builder.putAll(Multimap
|
boolean |
ForwardingMultimap.putAll(Multimap
|
boolean |
Multimap.putAll(Multimap
Stores all key-value pairs of
multimap in this multimap, in the order returned by
multimap.entries().
|
boolean |
ImmutableMultimap.putAll(Multimap
Deprecated.
Unsupported operation.
|
ImmutableMultimap |
ImmutableMultimap.Builder.putAll(Multimap
Stores another multimap's entries in the built multimap.
|
ImmutableListMultimap |
ImmutableListMultimap.Builder.putAll(Multimap
|
static <K |
Multimaps.synchronizedMultimap(Multimap
Returns a synchronized (thread-safe) multimap backed by the specified multimap.
|
static <K |
Multimaps.transformEntries(Multimap
Returns a view of a multimap whose values are derived from the original multimap's entries.
|
static <K |
Multimaps.transformValues(Multimap
Returns a view of a multimap where each value is transformed by a function.
|
static <K |
Multimaps.unmodifiableMultimap(Multimap
Returns an unmodifiable view of the specified multimap.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
MediaType.withParameters(Multimap
Replaces all parameters with the given parameters.
|