public final class UnifiedSetMultimap<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 |
|---|
UnifiedSetMultimap() |
UnifiedSetMultimap(com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap) |
UnifiedSetMultimap(com.gs.collections.api.tuple.Pair<K,V>... pairs) |
| Modifier and Type | Method and Description |
|---|---|
protected com.gs.collections.api.set.MutableSet<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) |
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(com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap) |
static <K,V> UnifiedSetMultimap<K,V> |
newMultimap(com.gs.collections.api.tuple.Pair<K,V>... pairs) |
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.
|
addToTotalSize, clear, clearTotalSize, decrementTotalSize, get, getMap, incrementTotalSize, isEmpty, put, putAll, putAll, putAllPairs, readExternal, remove, removeAll, replaceValues, size, sizeDistinct, subtractFromTotalSize, toMap, writeExternalcontainsKey, 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, replaceValuescontainsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesViewpublic UnifiedSetMultimap()
public UnifiedSetMultimap(com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap)
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>>public static <K,V> UnifiedSetMultimap<K,V> newMultimap(com.gs.collections.api.multimap.Multimap<? extends K,? extends V> multimap)
public static <K,V> UnifiedSetMultimap<K,V> newMultimap()
public static <K,V> UnifiedSetMultimap<K,V> newMultimap(com.gs.collections.api.tuple.Pair<K,V>... pairs)
protected com.gs.collections.api.set.MutableSet<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 UnifiedSetMultimap<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>newEmpty in interface com.gs.collections.api.multimap.set.UnsortedSetMultimap<K,V>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.