Uses of Interface
com.google.common.collect.ListMultimap
-
Packages that use ListMultimap Package Description com.google.common.collect Collection interfaces and implementations, and other utilities for collections. -
-
Uses of ListMultimap in com.google.common.collect
Classes in com.google.common.collect that implement ListMultimap Modifier and Type Class Description class
ArrayListMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
Implementation ofMultimap
that uses anArrayList
to store the values for a given key.class
ForwardingListMultimap<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.class
ImmutableListMultimap<K,V>
AListMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
LinkedListMultimap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
An implementation ofListMultimap
that supports deterministic iteration order for both keys and values.Methods in com.google.common.collect that return ListMultimap Modifier and Type Method Description abstract <K extends K0,V extends V0>
ListMultimap<K,V>MultimapBuilder.ListMultimapBuilder. build()
<K extends K0,V extends V0>
ListMultimap<K,V>MultimapBuilder.ListMultimapBuilder. build(Multimap<? extends K,? extends V> multimap)
protected abstract ListMultimap<K,V>
ForwardingListMultimap. delegate()
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. filterKeys(ListMultimap<K,V> unfiltered, Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings inunfiltered
whose keys satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. newListMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.List<V>> factory)
Creates a newListMultimap
that uses the provided map and factory.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. synchronizedListMultimap(ListMultimap<K,V> multimap)
Returns a synchronized (thread-safe)ListMultimap
backed by the specified multimap.static <K extends @Nullable java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.Object>
ListMultimap<K,V2>Multimaps. transformEntries(ListMultimap<K,V1> fromMap, Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of aListMultimap
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>
ListMultimap<K,V2>Multimaps. transformValues(ListMultimap<K,V1> fromMultimap, Function<? super V1,V2> function)
Returns a view of aListMultimap
where each value is transformed by a function.static <K,V>
ListMultimap<K,V>Multimaps. unmodifiableListMultimap(ImmutableListMultimap<K,V> delegate)
Deprecated.no need to use thisstatic <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. unmodifiableListMultimap(ListMultimap<K,V> delegate)
Returns an unmodifiable view of the specifiedListMultimap
.Methods in com.google.common.collect with parameters of type ListMultimap Modifier and Type Method Description static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.Map<K,java.util.List<V>>Multimaps. asMap(ListMultimap<K,V> multimap)
static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. filterKeys(ListMultimap<K,V> unfiltered, Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings inunfiltered
whose keys satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. synchronizedListMultimap(ListMultimap<K,V> multimap)
Returns a synchronized (thread-safe)ListMultimap
backed by the specified multimap.static <K extends @Nullable java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.Object>
ListMultimap<K,V2>Multimaps. transformEntries(ListMultimap<K,V1> fromMap, Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of aListMultimap
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>
ListMultimap<K,V2>Multimaps. transformValues(ListMultimap<K,V1> fromMultimap, Function<? super V1,V2> function)
Returns a view of aListMultimap
where each value is transformed by a function.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
ListMultimap<K,V>Multimaps. unmodifiableListMultimap(ListMultimap<K,V> delegate)
Returns an unmodifiable view of the specifiedListMultimap
.
-