Uses of Interface
com.google.common.collect.Multimap
-
Packages that use Multimap Package Description com.google.common.collect Collection interfaces and implementations, and other utilities for collections.com.google.common.net 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.collect Modifier and Type Interface Description interfaceListMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>AMultimapthat can hold duplicate key-value pairs and that maintains the insertion ordering of values for a given key.interfaceSetMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>AMultimapthat cannot hold duplicate key-value pairs.interfaceSortedSetMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>ASetMultimapwhose set of values for a given key are kept sorted; that is, they comprise aSortedSet.Classes in com.google.common.collect that implement Multimap Modifier and Type Class Description classArrayListMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>Implementation ofMultimapthat uses anArrayListto store the values for a given key.classForwardingListMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>A list multimap which forwards all its method calls to another list multimap.classForwardingMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>A multimap which forwards all its method calls to another multimap.classForwardingSetMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>A set multimap which forwards all its method calls to another set multimap.classForwardingSortedSetMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>A sorted set multimap which forwards all its method calls to another sorted set multimap.classHashMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>Implementation ofMultimapusing hash tables.classImmutableListMultimap<K,V>AListMultimapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableMultimap<K,V>AMultimapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSetMultimap<K,V>ASetMultimapwhose contents will never change, with many other important properties detailed atImmutableCollection.classLinkedHashMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>Implementation ofMultimapthat 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.classLinkedListMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>An implementation ofListMultimapthat supports deterministic iteration order for both keys and values.classTreeMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>Implementation ofMultimapwhose 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 Modifier and Type Method Description static <T extends @Nullable java.lang.Object,K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object,M extends Multimap<K,V>>
java.util.stream.Collector<T,?,M>Multimaps. flatteningToMultimap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends V>> valueFunction, java.util.function.Supplier<M> multimapSupplier)Returns aCollectoraccumulating entries into aMultimapgenerated from the specified supplier.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object,M extends Multimap<K,V>>
MMultimaps. invertFrom(Multimap<? extends V,? extends K> source, M dest)Copies each key-value mapping insourceintodest, with its key and value reversed.static <T extends @Nullable java.lang.Object,K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object,M extends Multimap<K,V>>
java.util.stream.Collector<T,?,M>Multimaps. toMultimap(java.util.function.Function<? super T,? extends K> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction, java.util.function.Supplier<M> multimapSupplier)Returns aCollectoraccumulating entries into aMultimapgenerated from the specified supplier.Methods in com.google.common.collect that return Multimap Modifier and Type Method Description abstract <K extends K0,V extends V0>
Multimap<K,V>MultimapBuilder. build()Returns a new, emptyMultimapwith the specified implementation.<K extends K0,V extends V0>
Multimap<K,V>MultimapBuilder. build(Multimap<? extends K,? extends V> multimap)Returns aMultimapwith the specified implementation, initialized with the entries ofmultimap.protected abstract Multimap<K,V>ForwardingMultimap. delegate()static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. filterEntries(Multimap<K,V> unfiltered, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Returns a multimap containing the mappings inunfilteredthat satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. filterKeys(Multimap<K,V> unfiltered, Predicate<? super K> keyPredicate)Returns a multimap containing the mappings inunfilteredwhose keys satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. filterValues(Multimap<K,V> unfiltered, Predicate<? super V> valuePredicate)Returns a multimap containing the mappings inunfilteredwhose values satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. newMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.Collection<V>> factory)Creates a newMultimapbacked bymap, whose internal value collections are generated byfactory.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. synchronizedMultimap(Multimap<K,V> multimap)Returns a synchronized (thread-safe) multimap backed by the specified multimap.static <K extends @Nullable java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.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 java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.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 thisstatic <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>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 Modifier and Type Method Description static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.Map<K,java.util.Collection<V>>Multimaps. asMap(Multimap<K,V> multimap)Returnsmultimap.asMap().<K extends K0,V extends V0>
Multimap<K,V>MultimapBuilder. build(Multimap<? extends K,? extends V> multimap)Returns aMultimapwith the specified implementation, initialized with the entries ofmultimap.<K extends K0,V extends V0>
ListMultimap<K,V>MultimapBuilder.ListMultimapBuilder. build(Multimap<? extends K,? extends V> multimap)<K extends K0,V extends V0>
SetMultimap<K,V>MultimapBuilder.SetMultimapBuilder. build(Multimap<? extends K,? extends V> multimap)<K extends K0,V extends V0>
SortedSetMultimap<K,V>MultimapBuilder.SortedSetMultimapBuilder. build(Multimap<? extends K,? extends V> multimap)static <K,V>
ImmutableListMultimap<K,V>ImmutableListMultimap. copyOf(Multimap<? extends K,? extends V> multimap)Returns an immutable multimap containing the same mappings asmultimap.static <K,V>
ImmutableMultimap<K,V>ImmutableMultimap. copyOf(Multimap<? extends K,? extends V> multimap)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>ImmutableSetMultimap. copyOf(Multimap<? extends K,? extends V> multimap)Returns an immutable set multimap containing the same mappings asmultimap.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ArrayListMultimap<K,V>ArrayListMultimap. create(Multimap<? extends K,? extends V> multimap)Constructs anArrayListMultimapwith the same mappings as the specified multimap.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
HashMultimap<K,V>HashMultimap. create(Multimap<? extends K,? extends V> multimap)Constructs aHashMultimapwith the same mappings as the specified multimap.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
LinkedHashMultimap<K,V>LinkedHashMultimap. create(Multimap<? extends K,? extends V> multimap)Constructs aLinkedHashMultimapwith the same mappings as the specified multimap.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
LinkedListMultimap<K,V>LinkedListMultimap. create(Multimap<? extends K,? extends V> multimap)Constructs aLinkedListMultimapwith the same mappings as the specifiedMultimap.static <K extends java.lang.Comparable,V extends java.lang.Comparable>
TreeMultimap<K,V>TreeMultimap. create(Multimap<? extends K,? extends V> multimap)Constructs aTreeMultimap, ordered by the natural ordering of its keys and values, with the same mappings as the specified multimap.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. filterEntries(Multimap<K,V> unfiltered, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Returns a multimap containing the mappings inunfilteredthat satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. filterKeys(Multimap<K,V> unfiltered, Predicate<? super K> keyPredicate)Returns a multimap containing the mappings inunfilteredwhose keys satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. filterValues(Multimap<K,V> unfiltered, Predicate<? super V> valuePredicate)Returns a multimap containing the mappings inunfilteredwhose values satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object,M extends Multimap<K,V>>
MMultimaps. invertFrom(Multimap<? extends V,? extends K> source, M dest)Copies each key-value mapping insourceintodest, with its key and value reversed.booleanForwardingMultimap. putAll(Multimap<? extends K,? extends V> multimap)ImmutableListMultimap.Builder<K,V>ImmutableListMultimap.Builder. putAll(Multimap<? extends K,? extends V> multimap)ImmutableMultimap.Builder<K,V>ImmutableMultimap.Builder. putAll(Multimap<? extends K,? extends V> multimap)Stores another multimap's entries in the built multimap.booleanImmutableMultimap. putAll(Multimap<? extends K,? extends V> multimap)Deprecated.Unsupported operation.ImmutableSetMultimap.Builder<K,V>ImmutableSetMultimap.Builder. putAll(Multimap<? extends K,? extends V> multimap)booleanMultimap. putAll(Multimap<? extends K,? extends V> multimap)Stores all key-value pairs ofmultimapin this multimap, in the order returned bymultimap.entries().static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>Multimaps. synchronizedMultimap(Multimap<K,V> multimap)Returns a synchronized (thread-safe) multimap backed by the specified multimap.static <K extends @Nullable java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.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 java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.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 extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Multimap<K,V>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 Modifier and Type Method Description MediaTypeMediaType. withParameters(Multimap<java.lang.String,java.lang.String> parameters)Replaces all parameters with the given parameters.
-