public final class ImmutableListMultimapImpl<K,V> extends AbstractImmutableMultimap<K,V,ImmutableList<V>> implements ImmutableListMultimap<K,V>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableListMultimapImpl.ImmutableListMultimapSerializationProxy<K,V> |
Constructor and Description |
---|
ImmutableListMultimapImpl(ImmutableMap<K,ImmutableList<V>> map) |
ImmutableListMultimapImpl(MutableMap<K,ImmutableList<V>> map) |
Modifier and Type | Method and Description |
---|---|
ImmutableListMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
ImmutableListMultimap<K,V> |
newWith(K key,
V value) |
ImmutableListMultimap<K,V> |
newWithAll(K key,
Iterable<? extends V> values) |
ImmutableListMultimap<K,V> |
newWithout(Object key,
Object value) |
ImmutableListMultimap<K,V> |
newWithoutAll(Object key) |
ImmutableListMultimap<K,V> |
toImmutable()
Returns an immutable copy of this Multimap if it is not already immutable.
|
MutableListMultimap<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 ImmutableListMultimapImpl(MutableMap<K,ImmutableList<V>> map)
public ImmutableListMultimapImpl(ImmutableMap<K,ImmutableList<V>> map)
public ImmutableListMultimap<K,V> newEmpty()
Multimap
newEmpty
in interface ImmutableMultimap<K,V>
newEmpty
in interface ImmutableListMultimap<K,V>
newEmpty
in interface ListMultimap<K,V>
newEmpty
in interface Multimap<K,V>
newEmpty
in interface ReversibleIterableMultimap<K,V>
public MutableListMultimap<K,V> toMutable()
Multimap
public ImmutableListMultimap<K,V> toImmutable()
Multimap
Serializable
if this Multimap is Serializable
.toImmutable
in interface ListMultimap<K,V>
toImmutable
in interface Multimap<K,V>
toImmutable
in class AbstractImmutableMultimap<K,V,ImmutableList<V>>
public ImmutableListMultimap<K,V> newWith(K key, V value)
newWith
in interface ImmutableMultimap<K,V>
newWith
in interface ImmutableListMultimap<K,V>
newWith
in class AbstractImmutableMultimap<K,V,ImmutableList<V>>
public ImmutableListMultimap<K,V> newWithout(Object key, Object value)
newWithout
in interface ImmutableMultimap<K,V>
newWithout
in interface ImmutableListMultimap<K,V>
newWithout
in class AbstractImmutableMultimap<K,V,ImmutableList<V>>
public ImmutableListMultimap<K,V> newWithAll(K key, Iterable<? extends V> values)
newWithAll
in interface ImmutableMultimap<K,V>
newWithAll
in interface ImmutableListMultimap<K,V>
newWithAll
in class AbstractImmutableMultimap<K,V,ImmutableList<V>>
public ImmutableListMultimap<K,V> newWithoutAll(Object key)
newWithoutAll
in interface ImmutableMultimap<K,V>
newWithoutAll
in interface ImmutableListMultimap<K,V>
newWithoutAll
in class AbstractImmutableMultimap<K,V,ImmutableList<V>>
Copyright © 2004–2016. All rights reserved.