public final class ImmutableSetMultimapImpl<K,V> extends AbstractImmutableMultimap<K,V,ImmutableSet<V>> implements ImmutableSetMultimap<K,V>, Serializable
Constructor and Description |
---|
ImmutableSetMultimapImpl(ImmutableMap<K,ImmutableSet<V>> map) |
ImmutableSetMultimapImpl(MutableMap<K,ImmutableSet<V>> map) |
Modifier and Type | Method and Description |
---|---|
ImmutableSetMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
ImmutableSetMultimap<K,V> |
newWith(K key,
V value) |
ImmutableSetMultimap<K,V> |
newWithAll(K key,
Iterable<? extends V> values) |
ImmutableSetMultimap<K,V> |
newWithout(Object key,
Object value) |
ImmutableSetMultimap<K,V> |
newWithoutAll(Object key) |
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.
|
get, isEmpty, size, sizeDistinct, toMap
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, toMap, toString, valuesView
get
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesView
public ImmutableSetMultimapImpl(MutableMap<K,ImmutableSet<V>> map)
public ImmutableSetMultimapImpl(ImmutableMap<K,ImmutableSet<V>> map)
public ImmutableSetMultimap<K,V> newEmpty()
Multimap
newEmpty
in interface ImmutableMultimap<K,V>
newEmpty
in interface Multimap<K,V>
newEmpty
in interface ImmutableSetMultimap<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>
toImmutable
in class AbstractImmutableMultimap<K,V,ImmutableSet<V>>
public ImmutableSetMultimap<K,V> newWith(K key, V value)
newWith
in interface ImmutableMultimap<K,V>
newWith
in interface ImmutableSetMultimap<K,V>
newWith
in class AbstractImmutableMultimap<K,V,ImmutableSet<V>>
public ImmutableSetMultimap<K,V> newWithout(Object key, Object value)
newWithout
in interface ImmutableMultimap<K,V>
newWithout
in interface ImmutableSetMultimap<K,V>
newWithout
in class AbstractImmutableMultimap<K,V,ImmutableSet<V>>
public ImmutableSetMultimap<K,V> newWithAll(K key, Iterable<? extends V> values)
newWithAll
in interface ImmutableMultimap<K,V>
newWithAll
in interface ImmutableSetMultimap<K,V>
newWithAll
in class AbstractImmutableMultimap<K,V,ImmutableSet<V>>
public ImmutableSetMultimap<K,V> newWithoutAll(Object key)
newWithoutAll
in interface ImmutableMultimap<K,V>
newWithoutAll
in interface ImmutableSetMultimap<K,V>
newWithoutAll
in class AbstractImmutableMultimap<K,V,ImmutableSet<V>>
Copyright © 2004–2017. All rights reserved.