Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Class and Description |
---|---|
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 |
ImmutableListMultimap<K,V>
A
ListMultimap whose contents will never change, with many other important properties
detailed at ImmutableCollection . |
class |
LinkedListMultimap<K,V>
An implementation of
ListMultimap that supports deterministic iteration order for both
keys and values. |
Modifier and Type | Method and Description |
---|---|
abstract <K extends K0,V extends V0> |
MultimapBuilder.ListMultimapBuilder.build() |
<K extends K0,V extends V0> |
MultimapBuilder.ListMultimapBuilder.build(Multimap<? extends K,? extends V> multimap) |
protected abstract ListMultimap<K,V> |
ForwardingListMultimap.delegate() |
static <K,V> ListMultimap<K,V> |
Multimaps.filterKeys(ListMultimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in
unfiltered whose keys satisfy a
predicate. |
static <K,V> ListMultimap<K,V> |
Multimaps.newListMultimap(Map<K,Collection<V>> map,
Supplier<? extends List<V>> factory)
Creates a new
ListMultimap that uses the provided map and factory. |
static <K,V> ListMultimap<K,V> |
Multimaps.synchronizedListMultimap(ListMultimap<K,V> multimap)
Returns a synchronized (thread-safe)
ListMultimap backed by the specified multimap. |
static <K,V1,V2> ListMultimap<K,V2> |
Multimaps.transformEntries(ListMultimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a
ListMultimap whose values are derived from the original multimap's
entries. |
static <K,V1,V2> ListMultimap<K,V2> |
Multimaps.transformValues(ListMultimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a
ListMultimap 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 this
|
static <K,V> ListMultimap<K,V> |
Multimaps.unmodifiableListMultimap(ListMultimap<K,V> delegate)
Returns an unmodifiable view of the specified
ListMultimap . |
Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,List<V>> |
Multimaps.asMap(ListMultimap<K,V> multimap)
|
static <K,V> ListMultimap<K,V> |
Multimaps.filterKeys(ListMultimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in
unfiltered whose keys satisfy a
predicate. |
static <K,V> ListMultimap<K,V> |
Multimaps.synchronizedListMultimap(ListMultimap<K,V> multimap)
Returns a synchronized (thread-safe)
ListMultimap backed by the specified multimap. |
static <K,V1,V2> ListMultimap<K,V2> |
Multimaps.transformEntries(ListMultimap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
Returns a view of a
ListMultimap whose values are derived from the original multimap's
entries. |
static <K,V1,V2> ListMultimap<K,V2> |
Multimaps.transformValues(ListMultimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a
ListMultimap where each value is transformed by a function. |
static <K,V> ListMultimap<K,V> |
Multimaps.unmodifiableListMultimap(ListMultimap<K,V> delegate)
Returns an unmodifiable view of the specified
ListMultimap . |
Copyright © 2010–2019. All rights reserved.