Uses of Interface
com.google.common.collect.Multimap
Packages that use Multimap
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Utility methods and classes for networking (such as IP addresses and domain names).
-
Uses of Multimap in com.google.common.collect
Subinterfaces of Multimap in com.google.common.collectModifier and TypeInterfaceDescriptioninterface
ListMultimap<K extends @Nullable Object,
V extends @Nullable Object> AMultimap
that can hold duplicate key-value pairs and that maintains the insertion ordering of values for a given key.interface
SetMultimap<K extends @Nullable Object,
V extends @Nullable Object> AMultimap
that cannot hold duplicate key-value pairs.interface
SortedSetMultimap<K extends @Nullable Object,
V extends @Nullable Object> ASetMultimap
whose set of values for a given key are kept sorted; that is, they comprise aSortedSet
.Classes in com.google.common.collect that implement MultimapModifier and TypeClassDescriptionfinal class
ArrayListMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
that uses anArrayList
to store the values for a given key.class
ForwardingListMultimap<K extends @Nullable Object,
V extends @Nullable Object> A list multimap which forwards all its method calls to another list multimap.class
ForwardingMultimap<K extends @Nullable Object,
V extends @Nullable Object> A multimap which forwards all its method calls to another multimap.class
ForwardingSetMultimap<K extends @Nullable Object,
V extends @Nullable Object> A set multimap which forwards all its method calls to another set multimap.class
ForwardingSortedSetMultimap<K extends @Nullable Object,
V extends @Nullable Object> A sorted set multimap which forwards all its method calls to another sorted set multimap.final class
HashMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
using hash tables.class
AListMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableMultimap<K,
V> AMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableSetMultimap<K,
V> ASetMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.final class
LinkedHashMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
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 extends @Nullable Object,
V extends @Nullable Object> An implementation ofListMultimap
that supports deterministic iteration order for both keys and values.class
TreeMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
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 MultimapModifier and TypeMethodDescriptionstatic <T extends @Nullable Object,
K extends @Nullable Object, V extends @Nullable Object, M extends Multimap<K, V>>
Collector<T, ?, M> Multimaps.flatteningToMultimap
(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends Stream<? extends V>> valueFunction, Supplier<M> multimapSupplier) Returns aCollector
accumulating entries into aMultimap
generated from the specified supplier.Multimaps.invertFrom
(Multimap<? extends V, ? extends K> source, M dest) Copies each key-value mapping insource
intodest
, with its key and value reversed.static <T extends @Nullable Object,
K extends @Nullable Object, V extends @Nullable Object, M extends Multimap<K, V>>
Collector<T, ?, M> Multimaps.toMultimap
(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, Supplier<M> multimapSupplier) Returns aCollector
accumulating entries into aMultimap
generated from the specified supplier.Methods in com.google.common.collect that return MultimapModifier and TypeMethodDescriptionMultimapBuilder.build()
Returns a new, emptyMultimap
with the specified implementation.Returns aMultimap
with the specified implementation, initialized with the entries ofmultimap
.ForwardingMultimap.delegate()
Multimaps.filterEntries
(Multimap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a multimap containing the mappings inunfiltered
that satisfy a predicate.Multimaps.filterKeys
(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a multimap containing the mappings inunfiltered
whose keys satisfy a predicate.Multimaps.filterValues
(Multimap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a multimap containing the mappings inunfiltered
whose values satisfy a predicate.Multimaps.newMultimap
(Map<K, Collection<V>> map, Supplier<? extends Collection<V>> factory) Creates a newMultimap
backed bymap
, whose internal value collections are generated byfactory
.Multimaps.synchronizedMultimap
(Multimap<K, V> multimap) Returns a synchronized (thread-safe) multimap backed by the specified multimap.static <K extends @Nullable Object,
V1 extends @Nullable Object, V2 extends @Nullable Object>
Multimap<K, V2> 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 <K extends @Nullable Object,
V1 extends @Nullable Object, V2 extends @Nullable Object>
Multimap<K, V2> 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 <K,
V> Multimap <K, V> Multimaps.unmodifiableMultimap
(ImmutableMultimap<K, V> delegate) Deprecated.no need to use thisMultimaps.unmodifiableMultimap
(Multimap<K, V> delegate) Returns an unmodifiable view of the specified multimap.Methods in com.google.common.collect with parameters of type MultimapModifier and TypeMethodDescriptionReturnsmultimap.asMap()
.Returns aMultimap
with the specified implementation, initialized with the entries ofmultimap
.<K extends K0,
V extends V0>
ListMultimap<K, V> <K extends K0,
V extends V0>
SetMultimap<K, V> <K extends K0,
V extends V0>
SortedSetMultimap<K, V> static <K,
V> ImmutableListMultimap <K, V> Returns an immutable multimap containing the same mappings asmultimap
.static <K,
V> ImmutableMultimap <K, V> Returns an immutable multimap containing the same mappings asmultimap
, in the "key-grouped" iteration order described in the class documentation.static <K,
V> ImmutableSetMultimap <K, V> Returns an immutable set multimap containing the same mappings asmultimap
.static <K extends @Nullable Object,
V extends @Nullable Object>
ArrayListMultimap<K, V> Constructs anArrayListMultimap
with the same mappings as the specified multimap.static <K extends @Nullable Object,
V extends @Nullable Object>
HashMultimap<K, V> Constructs aHashMultimap
with the same mappings as the specified multimap.static <K extends @Nullable Object,
V extends @Nullable Object>
LinkedHashMultimap<K, V> Constructs aLinkedHashMultimap
with the same mappings as the specified multimap.static <K extends @Nullable Object,
V extends @Nullable Object>
LinkedListMultimap<K, V> Constructs aLinkedListMultimap
with the same mappings as the specifiedMultimap
.static <K extends Comparable,
V extends Comparable>
TreeMultimap<K, V> Constructs aTreeMultimap
, ordered by the natural ordering of its keys and values, with the same mappings as the specified multimap.Multimaps.filterEntries
(Multimap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a multimap containing the mappings inunfiltered
that satisfy a predicate.Multimaps.filterKeys
(Multimap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a multimap containing the mappings inunfiltered
whose keys satisfy a predicate.Multimaps.filterValues
(Multimap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a multimap containing the mappings inunfiltered
whose values satisfy a predicate.Multimaps.invertFrom
(Multimap<? extends V, ? extends K> source, M dest) Copies each key-value mapping insource
intodest
, with its key and value reversed.boolean
Stores another multimap's entries in the built multimap.final boolean
Deprecated.Unsupported operation.boolean
Stores all key-value pairs ofmultimap
in this multimap, in the order returned bymultimap.entries()
.Multimaps.synchronizedMultimap
(Multimap<K, V> multimap) Returns a synchronized (thread-safe) multimap backed by the specified multimap.static <K extends @Nullable Object,
V1 extends @Nullable Object, V2 extends @Nullable Object>
Multimap<K, V2> 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 <K extends @Nullable Object,
V1 extends @Nullable Object, V2 extends @Nullable Object>
Multimap<K, V2> 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.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 MultimapModifier and TypeMethodDescriptionMediaType.withParameters
(Multimap<String, String> parameters) Replaces all parameters with the given parameters.