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, writeExternalcontainsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, toMap, toString, valuesViewget, removeAll, replaceValuescontainsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesViewclear, put, putAll, putAll, putAllPairs, removereadExternal, writeExternalpublic 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()
MultimapnewEmpty 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()
Multimappublic ImmutableListMultimap<K,V> toImmutable()
MultimapSerializable if this Multimap is Serializable.toImmutable in interface ListMultimap<K,V>toImmutable in interface Multimap<K,V>Copyright © 2004–2017. All rights reserved.