public final class FastListMultimap<K,V> extends AbstractMutableMultimap<K,V,MutableList<V>> implements MutableListMultimap<K,V>, Externalizable
Constructor and Description |
---|
FastListMultimap() |
FastListMultimap(int distinctKeys,
int valuesPerKey) |
FastListMultimap(Multimap<? extends K,? extends V> multimap) |
FastListMultimap(Pair<K,V>... pairs) |
Modifier and Type | Method and Description |
---|---|
FastListMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
static <K,V> FastListMultimap<K,V> |
newMultimap() |
static <K,V> FastListMultimap<K,V> |
newMultimap(Multimap<? extends K,? extends V> multimap) |
static <K,V> FastListMultimap<K,V> |
newMultimap(Pair<K,V>... pairs) |
ImmutableListMultimap<K,V> |
toImmutable()
Returns an immutable copy of this Multimap if it is not already immutable.
|
MutableListMultimap<K,V> |
toMutable()
Returns a mutable copy of this Multimap.
|
void |
trimToSize() |
clear, get, isEmpty, put, putAll, putAll, putAllPairs, readExternal, remove, removeAll, replaceValues, size, sizeDistinct, toMap, writeExternal
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, toMap, toString, valuesView
get, removeAll, replaceValues
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesView
clear, put, putAll, putAll, putAllPairs, remove
readExternal, writeExternal
public FastListMultimap()
public FastListMultimap(int distinctKeys, int valuesPerKey)
public static <K,V> FastListMultimap<K,V> newMultimap()
public static <K,V> FastListMultimap<K,V> newMultimap(Multimap<? extends K,? extends V> multimap)
public static <K,V> FastListMultimap<K,V> newMultimap(Pair<K,V>... pairs)
public void trimToSize()
public FastListMultimap<K,V> newEmpty()
Multimap
newEmpty
in interface ListMultimap<K,V>
newEmpty
in interface MutableListMultimap<K,V>
newEmpty
in interface Multimap<K,V>
newEmpty
in interface MutableMultimap<K,V>
newEmpty
in interface ReversibleIterableMultimap<K,V>
public MutableListMultimap<K,V> toMutable()
Multimap
public ImmutableListMultimap<K,V> toImmutable()
Multimap
Serializable
if this Multimap is Serializable
.toImmutable
in interface ListMultimap<K,V>
toImmutable
in interface Multimap<K,V>
Copyright © 2004–2018. All rights reserved.