public final class UnifiedSetWithHashingStrategyMultimap<K,V> extends AbstractMutableMultimap<K,V,MutableSet<V>> implements MutableSetMultimap<K,V>, Externalizable
Constructor and Description |
---|
UnifiedSetWithHashingStrategyMultimap()
Deprecated.
Empty default constructor used for serialization. Instantiating an UnifiedSetWithHashingStrategyMultimap with
this constructor will have a null hashingStrategy and throw NullPointerException when used.
|
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy) |
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy,
Multimap<? extends K,? extends V> multimap) |
UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy,
Pair<K,V>... pairs) |
UnifiedSetWithHashingStrategyMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap) |
Modifier and Type | Method and Description |
---|---|
HashingStrategy<? super V> |
getValueHashingStrategy() |
UnifiedSetWithHashingStrategyMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy) |
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy,
Multimap<? extends K,? extends V> multimap) |
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(HashingStrategy<? super V> hashingStrategy,
Pair<K,V>... pairs) |
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap) |
void |
readExternal(ObjectInput in) |
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.
|
void |
writeExternal(ObjectOutput out) |
clear, get, isEmpty, put, putAll, putAll, putAllPairs, remove, removeAll, replaceValues, size, sizeDistinct, toMap
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
@Deprecated public UnifiedSetWithHashingStrategyMultimap()
public UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy)
public UnifiedSetWithHashingStrategyMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap)
public UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy, Multimap<? extends K,? extends V> multimap)
public UnifiedSetWithHashingStrategyMultimap(HashingStrategy<? super V> hashingStrategy, Pair<K,V>... pairs)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy, Multimap<? extends K,? extends V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(HashingStrategy<? super V> hashingStrategy, Pair<K,V>... pairs)
public UnifiedSetWithHashingStrategyMultimap<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 HashingStrategy<? super V> getValueHashingStrategy()
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>
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractMutableMultimap<K,V,MutableSet<V>>
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractMutableMultimap<K,V,MutableSet<V>>
IOException
ClassNotFoundException
Copyright © 2004–2018. All rights reserved.