public abstract class AbstractSynchronizedMultimap<K,V> extends Object implements MutableMultimap<K,V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Pair<? extends K,? extends V> keyValuePair) |
void |
clear() |
<K2,V2,R extends MutableMultimap<K2,V2>> |
collectKeyMultiValues(Function<? super K,? extends K2> keyFunction,
Function<? super V,? extends V2> valueFunction,
R target) |
<K2,V2,R extends MutableMultimap<K2,V2>> |
collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function,
R target) |
<V2,R extends MutableMultimap<K,V2>> |
collectValues(Function<? super V,? extends V2> function,
R target) |
boolean |
containsKey(Object key) |
boolean |
containsKeyAndValue(Object key,
Object value) |
boolean |
containsValue(Object value) |
boolean |
equals(Object obj) |
void |
forEachKey(Procedure<? super K> procedure) |
void |
forEachKeyMultiValues(Procedure2<? super K,? super RichIterable<V>> procedure) |
void |
forEachKeyValue(Procedure2<? super K,? super V> procedure) |
void |
forEachValue(Procedure<? super V> procedure) |
int |
hashCode() |
boolean |
isEmpty() |
Bag<K> |
keyBag() |
RichIterable<Pair<K,RichIterable<V>>> |
keyMultiValuePairsView() |
SetIterable<K> |
keySet() |
RichIterable<K> |
keysView() |
RichIterable<Pair<K,V>> |
keyValuePairsView() |
RichIterable<RichIterable<V>> |
multiValuesView() |
boolean |
notEmpty() |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
Iterable<? extends V> values) |
<KK extends K,VV extends V> |
putAll(Multimap<KK,VV> multimap) |
boolean |
putAllPairs(Iterable<? extends Pair<? extends K,? extends V>> pairs) |
boolean |
putAllPairs(Pair<? extends K,? extends V>... pairs) |
<R extends MutableMultimap<K,V>> |
rejectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate,
R target) |
<R extends MutableMultimap<K,V>> |
rejectKeysValues(Predicate2<? super K,? super V> predicate,
R target) |
boolean |
remove(Object key,
Object value) |
<R extends MutableMultimap<K,V>> |
selectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate,
R target) |
<R extends MutableMultimap<K,V>> |
selectKeysValues(Predicate2<? super K,? super V> predicate,
R target) |
int |
size() |
int |
sizeDistinct() |
MutableMap<K,RichIterable<V>> |
toMap() |
<R extends Collection<V>> |
toMap(Function0<R> collectionFactory) |
String |
toString() |
RichIterable<V> |
valuesView() |
MutableMultimap<K,V> |
withKeyMultiValues(K key,
V... values) |
asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, get, getIfAbsentPutAll, newEmpty, rejectKeysMultiValues, rejectKeysValues, removeAll, replaceValues, selectKeysMultiValues, selectKeysValues, withKeyValuetoImmutable, toMutablepublic boolean equals(Object obj)
public int hashCode()
public boolean add(Pair<? extends K,? extends V> keyValuePair)
add in interface MutableMultimap<K,V>public boolean remove(Object key, Object value)
remove in interface MutableMultimap<K,V>public MutableMultimap<K,V> withKeyMultiValues(K key, V... values)
withKeyMultiValues in interface MutableMultimap<K,V>public boolean putAllPairs(Pair<? extends K,? extends V>... pairs)
putAllPairs in interface MutableMultimap<K,V>public boolean putAllPairs(Iterable<? extends Pair<? extends K,? extends V>> pairs)
putAllPairs in interface MutableMultimap<K,V>public boolean putAll(K key, Iterable<? extends V> values)
putAll in interface MutableMultimap<K,V>public <KK extends K,VV extends V> boolean putAll(Multimap<KK,VV> multimap)
putAll in interface MutableMultimap<K,V>public void clear()
clear in interface MutableMultimap<K,V>public void forEachValue(Procedure<? super V> procedure)
forEachValue in interface Multimap<K,V>public void forEachKey(Procedure<? super K> procedure)
forEachKey in interface Multimap<K,V>public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
forEachKeyValue in interface Multimap<K,V>public void forEachKeyMultiValues(Procedure2<? super K,? super RichIterable<V>> procedure)
forEachKeyMultiValues in interface Multimap<K,V>public int sizeDistinct()
sizeDistinct in interface Multimap<K,V>public boolean containsKey(Object key)
containsKey in interface Multimap<K,V>public boolean containsValue(Object value)
containsValue in interface Multimap<K,V>public boolean containsKeyAndValue(Object key, Object value)
containsKeyAndValue in interface Multimap<K,V>public RichIterable<RichIterable<V>> multiValuesView()
multiValuesView in interface Multimap<K,V>public RichIterable<V> valuesView()
valuesView in interface Multimap<K,V>public RichIterable<Pair<K,RichIterable<V>>> keyMultiValuePairsView()
keyMultiValuePairsView in interface Multimap<K,V>public RichIterable<Pair<K,V>> keyValuePairsView()
keyValuePairsView in interface Multimap<K,V>public MutableMap<K,RichIterable<V>> toMap()
public <R extends Collection<V>> MutableMap<K,R> toMap(Function0<R> collectionFactory)
public <R extends MutableMultimap<K,V>> R selectKeysValues(Predicate2<? super K,? super V> predicate, R target)
selectKeysValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R rejectKeysValues(Predicate2<? super K,? super V> predicate, R target)
rejectKeysValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R selectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate, R target)
selectKeysMultiValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R rejectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate, R target)
rejectKeysMultiValues in interface Multimap<K,V>public <K2,V2,R extends MutableMultimap<K2,V2>> R collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function, R target)
collectKeysValues in interface Multimap<K,V>public <K2,V2,R extends MutableMultimap<K2,V2>> R collectKeyMultiValues(Function<? super K,? extends K2> keyFunction, Function<? super V,? extends V2> valueFunction, R target)
collectKeyMultiValues in interface Multimap<K,V>public <V2,R extends MutableMultimap<K,V2>> R collectValues(Function<? super V,? extends V2> function, R target)
collectValues in interface Multimap<K,V>Copyright © 2004–2022. All rights reserved.