public final class UnifiedSetMultimap<K,V> extends AbstractMutableMultimap<K,V,MutableSet<V>> implements MutableSetMultimap<K,V>, Externalizable
Constructor and Description |
---|
UnifiedSetMultimap() |
UnifiedSetMultimap(Multimap<? extends K,? extends V> multimap) |
UnifiedSetMultimap(Pair<K,V>... pairs) |
Modifier and Type | Method and Description |
---|---|
UnifiedSetMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
static <K,V> UnifiedSetMultimap<K,V> |
newMultimap() |
static <K,V> UnifiedSetMultimap<K,V> |
newMultimap(Multimap<? extends K,? extends V> multimap) |
static <K,V> UnifiedSetMultimap<K,V> |
newMultimap(Pair<K,V>... pairs) |
ImmutableSetMultimap<K,V> |
toImmutable()
Returns an immutable copy of this Multimap if it is not already immutable.
|
MutableSetMultimap<K,V> |
toMutable()
Returns a mutable copy of this Multimap.
|
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 static <K,V> UnifiedSetMultimap<K,V> newMultimap(Multimap<? extends K,? extends V> multimap)
public static <K,V> UnifiedSetMultimap<K,V> newMultimap()
public static <K,V> UnifiedSetMultimap<K,V> newMultimap(Pair<K,V>... pairs)
public UnifiedSetMultimap<K,V> newEmpty()
Multimap
newEmpty
in interface Multimap<K,V>
newEmpty
in interface MutableMultimap<K,V>
newEmpty
in interface MutableSetMultimap<K,V>
newEmpty
in interface SetMultimap<K,V>
newEmpty
in interface UnsortedSetMultimap<K,V>
public MutableSetMultimap<K,V> toMutable()
Multimap
public ImmutableSetMultimap<K,V> toImmutable()
Multimap
Serializable
if this Multimap is Serializable
.toImmutable
in interface Multimap<K,V>
toImmutable
in interface UnsortedSetMultimap<K,V>
Copyright © 2004–2016. All rights reserved.