Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> HashMultimap<K,V> |
HashMultimap.create()
Creates a new, empty
HashMultimap with the default initial capacities. |
static <K,V> HashMultimap<K,V> |
HashMultimap.create(int expectedKeys,
int expectedValuesPerKey)
Constructs an empty
HashMultimap with enough capacity to hold the specified numbers of
keys and values without rehashing. |
static <K,V> HashMultimap<K,V> |
HashMultimap.create(Multimap<? extends K,? extends V> multimap)
Constructs a
HashMultimap with the same mappings as the specified multimap. |
Modifier and Type | Method and Description |
---|---|
private static <K,V> HashMultimap<K,V> |
FreshValueGenerator.generateHashMultimap(K key,
V value) |