public class Multimaps2
extends java.lang.Object
LinkedHashListMultimap.Multimaps| Constructor and Description |
|---|
Multimaps2() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> com.google.common.collect.ListMultimap<K,V> |
newLinkedHashListMultimap()
Creates a new, empty
ListMultimap with the default initial capacities that uses a linked map internally. |
static <K,V> com.google.common.collect.ListMultimap<K,V> |
newLinkedHashListMultimap(int expectedKeys,
int expectedValuesPerKey)
Constructs an empty
ListMultimap with enough capacity to hold the specified numbers of keys and values
without resizing. |
static <K,V> com.google.common.collect.ListMultimap<K,V> |
newLinkedHashListMultimap(com.google.common.collect.Multimap<K,V> multimap)
Constructs an
ArrayListMultimap with the same mappings as the specified multimap. |
public static <K,V> com.google.common.collect.ListMultimap<K,V> newLinkedHashListMultimap()
ListMultimap with the default initial capacities that uses a linked map internally.public static <K,V> com.google.common.collect.ListMultimap<K,V> newLinkedHashListMultimap(int expectedKeys,
int expectedValuesPerKey)
ListMultimap with enough capacity to hold the specified numbers of keys and values
without resizing. It uses a linked map internally.expectedKeys - the expected number of distinct keysexpectedValuesPerKey - the expected average number of values per keyjava.lang.IllegalArgumentException - if expectedKeys or expectedValuesPerKey is negativepublic static <K,V> com.google.common.collect.ListMultimap<K,V> newLinkedHashListMultimap(com.google.common.collect.Multimap<K,V> multimap)
ArrayListMultimap with the same mappings as the specified multimap. It uses a linked map
internally..multimap - the multimap whose contents are copied to this multimap