|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Multimap | |
---|---|
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). |
Uses of Multimap in com.google.common.collect |
---|
Subinterfaces of Multimap in com.google.common.collect | |
---|---|
interface |
ListMultimap<K,V>
A Multimap that can hold duplicate key-value pairs and that maintains
the insertion ordering of values for a given key. |
interface |
SetMultimap<K,V>
A Multimap that cannot hold duplicate key-value pairs. |
interface |
SortedSetMultimap<K,V>
A SetMultimap whose set of values for a given key are kept sorted;
that is, they comprise a SortedSet . |
Classes in com.google.common.collect that implement Multimap | |
---|---|
class |
ArrayListMultimap<K,V>
Implementation of Multimap that uses an ArrayList to store
the values for a given key. |
class |
ForwardingListMultimap<K,V>
A list multimap which forwards all its method calls to another list multimap. |
class |
ForwardingMultimap<K,V>
A multimap which forwards all its method calls to another multimap. |
class |
ForwardingSetMultimap<K,V>
A set multimap which forwards all its method calls to another set multimap. |
class |
ForwardingSortedSetMultimap<K,V>
A sorted set multimap which forwards all its method calls to another sorted set multimap. |
class |
HashMultimap<K,V>
Implementation of Multimap using hash tables. |
class |
ImmutableListMultimap<K,V>
An immutable ListMultimap with reliable user-specified key and value
iteration order. |
class |
ImmutableMultimap<K,V>
An immutable Multimap . |
class |
ImmutableSetMultimap<K,V>
An immutable SetMultimap with reliable user-specified key and value
iteration order. |
class |
LinkedHashMultimap<K,V>
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,V>
An implementation of ListMultimap that supports deterministic
iteration order for both keys and values. |
class |
TreeMultimap<K,V>
Implementation of Multimap whose keys and values are ordered by
their natural ordering or by supplied comparators. |
Methods in com.google.common.collect with type parameters of type Multimap | ||
---|---|---|
static
|
Multimaps.invertFrom(Multimap<? extends V,? extends K> source,
M dest)
Copies each key-value mapping in source into dest , with
its key and value reversed. |
Methods in com.google.common.collect that return Multimap | ||
---|---|---|
static
|
MapConstraints.constrainedMultimap(Multimap<K,V> multimap,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified multimap, using the specified constraint. |
|
protected abstract Multimap<K,V> |
ForwardingMultimap.delegate()
|
|
static
|
Multimaps.filterEntries(Multimap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a multimap containing the mappings in unfiltered that
satisfy a predicate. |
|
static
|
Multimaps.filterKeys(Multimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in unfiltered whose keys
satisfy a predicate. |
|
static
|
Multimaps.filterValues(Multimap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in unfiltered whose values
satisfy a predicate. |
|
static
|
Multimaps.newMultimap(Map<K,Collection<V>> map,
Supplier<? extends Collection<V>> factory)
Creates a new Multimap that uses the provided map and factory. |
|
static
|
Multimaps.synchronizedMultimap(Multimap<K,V> multimap)
Returns a synchronized (thread-safe) multimap backed by the specified multimap. |
|
static
|
Multimaps.transformEntries(Multimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a multimap whose values are derived from the original multimap's entries. |
|
static
|
Multimaps.transformValues(Multimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a multimap where each value is transformed by a function. |
|
static
|
Multimaps.unmodifiableMultimap(ImmutableMultimap<K,V> delegate)
Deprecated. no need to use this |
|
static
|
Multimaps.unmodifiableMultimap(Multimap<K,V> delegate)
Returns an unmodifiable view of the specified multimap. |
Methods in com.google.common.collect with parameters of type Multimap | ||
---|---|---|
static
|
MapConstraints.constrainedMultimap(Multimap<K,V> multimap,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified multimap, using the specified constraint. |
|
static
|
ImmutableListMultimap.copyOf(Multimap<? extends K,? extends V> multimap)
Returns an immutable multimap containing the same mappings as multimap . |
|
static
|
ImmutableSetMultimap.copyOf(Multimap<? extends K,? extends V> multimap)
Returns an immutable set multimap containing the same mappings as multimap . |
|
static
|
ImmutableMultimap.copyOf(Multimap<? extends K,? extends V> multimap)
Returns an immutable multimap containing the same mappings as multimap . |
|
static
|
TreeMultimap.create(Multimap<? extends K,? extends V> multimap)
Constructs a TreeMultimap , ordered by the natural ordering of its
keys and values, with the same mappings as the specified multimap. |
|
static
|
LinkedListMultimap.create(Multimap<? extends K,? extends V> multimap)
Constructs a LinkedListMultimap with the same mappings as the
specified Multimap . |
|
static
|
LinkedHashMultimap.create(Multimap<? extends K,? extends V> multimap)
Constructs a LinkedHashMultimap with the same mappings as the
specified multimap. |
|
static
|
HashMultimap.create(Multimap<? extends K,? extends V> multimap)
Constructs a HashMultimap with the same mappings as the specified
multimap. |
|
static
|
ArrayListMultimap.create(Multimap<? extends K,? extends V> multimap)
Constructs an ArrayListMultimap with the same mappings as the
specified multimap. |
|
static
|
Multimaps.filterEntries(Multimap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a multimap containing the mappings in unfiltered that
satisfy a predicate. |
|
static
|
Multimaps.filterKeys(Multimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in unfiltered whose keys
satisfy a predicate. |
|
static
|
Multimaps.filterValues(Multimap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in unfiltered whose values
satisfy a predicate. |
|
static
|
Multimaps.invertFrom(Multimap<? extends V,? extends K> source,
M dest)
Copies each key-value mapping in source into dest , with
its key and value reversed. |
|
boolean |
LinkedListMultimap.putAll(Multimap<? extends K,? extends V> multimap)
|
|
boolean |
ForwardingMultimap.putAll(Multimap<? extends K,? extends V> multimap)
|
|
ImmutableListMultimap.Builder<K,V> |
ImmutableListMultimap.Builder.putAll(Multimap<? extends K,? extends V> multimap)
|
|
ImmutableSetMultimap.Builder<K,V> |
ImmutableSetMultimap.Builder.putAll(Multimap<? extends K,? extends V> multimap)
|
|
boolean |
ImmutableMultimap.putAll(Multimap<? extends K,? extends V> multimap)
Guaranteed to throw an exception and leave the multimap unmodified. |
|
ImmutableMultimap.Builder<K,V> |
ImmutableMultimap.Builder.putAll(Multimap<? extends K,? extends V> multimap)
Stores another multimap's entries in the built multimap. |
|
boolean |
Multimap.putAll(Multimap<? extends K,? extends V> multimap)
Copies all of another multimap's key-value pairs into this multimap. |
|
static
|
Multimaps.synchronizedMultimap(Multimap<K,V> multimap)
Returns a synchronized (thread-safe) multimap backed by the specified multimap. |
|
static
|
Multimaps.transformEntries(Multimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a multimap whose values are derived from the original multimap's entries. |
|
static
|
Multimaps.transformValues(Multimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a multimap where each value is transformed by a function. |
|
static
|
Multimaps.unmodifiableMultimap(Multimap<K,V> delegate)
Returns an unmodifiable view of the specified multimap. |
Uses of Multimap in com.google.common.net |
---|
Methods in com.google.common.net with parameters of type Multimap | |
---|---|
MediaType |
MediaType.withParameters(Multimap<String,String> parameters)
Replaces all parameters with the given parameters. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |