public interface ImmutableBagMultimap<K,V> extends UnsortedBagMultimap<K,V>, ImmutableMultimap<K,V>
Modifier and Type | Method and Description |
---|---|
ImmutableBag<V> |
get(K key)
Returns a view of all values associated with the given key.
|
ImmutableBagMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
ImmutableBagMultimap<K,V> |
newWith(K key,
V value) |
ImmutableBagMultimap<K,V> |
newWithAll(K key,
Iterable<? extends V> values) |
ImmutableBagMultimap<K,V> |
newWithout(Object key,
Object value) |
ImmutableBagMultimap<K,V> |
newWithoutAll(Object key) |
toImmutable, toMutable
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toMap, toMap, valuesView
ImmutableBagMultimap<K,V> newEmpty()
Multimap
ImmutableBag<V> get(K key)
Multimap
RichIterable
is returned.ImmutableBagMultimap<K,V> newWith(K key, V value)
newWith
in interface ImmutableMultimap<K,V>
ImmutableBagMultimap<K,V> newWithout(Object key, Object value)
newWithout
in interface ImmutableMultimap<K,V>
ImmutableBagMultimap<K,V> newWithAll(K key, Iterable<? extends V> values)
newWithAll
in interface ImmutableMultimap<K,V>
ImmutableBagMultimap<K,V> newWithoutAll(Object key)
newWithoutAll
in interface ImmutableMultimap<K,V>
Copyright © 2004–2019. All rights reserved.