public final class UnifiedSetWithHashingStrategyMultimap<K,V> extends AbstractMutableMultimap<K,V,com.gs.collections.api.set.MutableSet<V>> implements com.gs.collections.api.multimap.set.MutableSetMultimap<K,V>, java.io.Externalizable
map, totalSize| 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(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy) |
UnifiedSetWithHashingStrategyMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy,
com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap) |
UnifiedSetWithHashingStrategyMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy,
com.gs.collections.api.tuple.Pair<K,V>... pairs) |
UnifiedSetWithHashingStrategyMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap) |
| Modifier and Type | Method and Description |
|---|---|
protected UnifiedSetWithHashingStrategy<V> |
createCollection()
Creates the collection of values for a single key.
|
protected com.gs.collections.api.map.MutableMap<K,com.gs.collections.api.set.MutableSet<V>> |
createMap() |
protected com.gs.collections.api.map.MutableMap<K,com.gs.collections.api.set.MutableSet<V>> |
createMapWithKeyCount(int keyCount) |
com.gs.collections.api.block.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(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy) |
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy,
com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap) |
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy,
com.gs.collections.api.tuple.Pair<K,V>... pairs) |
static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> |
newMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap) |
void |
readExternal(java.io.ObjectInput in) |
com.gs.collections.api.multimap.set.ImmutableSetMultimap<K,V> |
toImmutable()
Returns an immutable copy of this Multimap if it is not already immutable.
|
com.gs.collections.api.multimap.set.MutableSetMultimap<K,V> |
toMutable()
Returns a mutable copy of this Multimap.
|
void |
writeExternal(java.io.ObjectOutput out) |
addToTotalSize, clear, clearTotalSize, decrementTotalSize, get, getMap, incrementTotalSize, isEmpty, put, putAll, putAll, putAllPairs, remove, removeAll, replaceValues, size, sizeDistinct, subtractFromTotalSize, toMapcontainsKey, containsKeyAndValue, containsValue, createCollectionBlock, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, toMap, toString, valuesViewclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, removeAll, replaceValuesclear, put, putAll, putAll, putAllPairs, removecontainsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesView@Deprecated public UnifiedSetWithHashingStrategyMultimap()
public UnifiedSetWithHashingStrategyMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy)
public UnifiedSetWithHashingStrategyMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap)
public UnifiedSetWithHashingStrategyMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy, com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(UnifiedSetWithHashingStrategyMultimap<K,V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy, com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy)
public static <K,V> UnifiedSetWithHashingStrategyMultimap<K,V> newMultimap(com.gs.collections.api.block.HashingStrategy<? super V> hashingStrategy, com.gs.collections.api.tuple.Pair<K,V>... pairs)
protected com.gs.collections.api.map.MutableMap<K,com.gs.collections.api.set.MutableSet<V>> createMap()
createMap in class AbstractMutableMultimap<K,V,com.gs.collections.api.set.MutableSet<V>>protected com.gs.collections.api.map.MutableMap<K,com.gs.collections.api.set.MutableSet<V>> createMapWithKeyCount(int keyCount)
createMapWithKeyCount in class AbstractMutableMultimap<K,V,com.gs.collections.api.set.MutableSet<V>>protected UnifiedSetWithHashingStrategy<V> createCollection()
AbstractMultimapcreateCollection should create a new instance.
The returned collection class determines whether duplicate key-value
pairs are allowed.createCollection in class AbstractMultimap<K,V,com.gs.collections.api.set.MutableSet<V>>public UnifiedSetWithHashingStrategyMultimap<K,V> newEmpty()
com.gs.collections.api.multimap.MultimapnewEmpty in interface com.gs.collections.api.multimap.Multimap<K,V>newEmpty in interface com.gs.collections.api.multimap.MutableMultimap<K,V>newEmpty in interface com.gs.collections.api.multimap.set.MutableSetMultimap<K,V>newEmpty in interface com.gs.collections.api.multimap.set.SetMultimap<K,V>public com.gs.collections.api.block.HashingStrategy<? super V> getValueHashingStrategy()
public com.gs.collections.api.multimap.set.MutableSetMultimap<K,V> toMutable()
com.gs.collections.api.multimap.Multimappublic com.gs.collections.api.multimap.set.ImmutableSetMultimap<K,V> toImmutable()
com.gs.collections.api.multimap.MultimapSerializable if this Multimap is Serializable.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AbstractMutableMultimap<K,V,com.gs.collections.api.set.MutableSet<V>>java.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class AbstractMutableMultimap<K,V,com.gs.collections.api.set.MutableSet<V>>java.io.IOExceptionjava.lang.ClassNotFoundException