Class AbstractSynchronizedMultimap<K,V>
java.lang.Object
org.eclipse.collections.impl.multimap.AbstractSynchronizedMultimap<K,V>
- All Implemented Interfaces:
Multimap<K,,V> MutableMultimap<K,V>
- Direct Known Subclasses:
SynchronizedBagMultimap,SynchronizedListMultimap,SynchronizedSetMultimap,SynchronizedSortedBagMultimap,SynchronizedSortedSetMultimap
public abstract class AbstractSynchronizedMultimap<K,V>
extends Object
implements MutableMultimap<K,V>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclear()<K2,V2, R extends MutableMultimap<K2, V2>>
RcollectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction, R target) <K2,V2, R extends MutableMultimap<K2, V2>>
RcollectKeysValues(Function2<? super K, ? super V, Pair<K2, V2>> function, R target) <V2,R extends MutableMultimap<K, V2>>
RcollectValues(Function<? super V, ? extends V2> function, R target) booleancontainsKey(Object key) booleancontainsKeyAndValue(Object key, Object value) booleancontainsValue(Object value) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyMultiValues(Procedure2<? super K, ? super RichIterable<V>> procedure) voidforEachKeyValue(Procedure2<? super K, ? super V> procedure) voidforEachValue(Procedure<? super V> procedure) inthashCode()booleanisEmpty()keyBag()keySet()keysView()RichIterable<Pair<K,V>> booleannotEmpty()booleanbooleanbooleanputAllPairs(Iterable<? extends Pair<? extends K, ? extends V>> pairs) booleanputAllPairs(Pair<? extends K, ? extends V>... pairs) <R extends MutableMultimap<K,V>>
RrejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate, R target) <R extends MutableMultimap<K,V>>
RrejectKeysValues(Predicate2<? super K, ? super V> predicate, R target) boolean<R extends MutableMultimap<K,V>>
RselectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate, R target) <R extends MutableMultimap<K,V>>
RselectKeysValues(Predicate2<? super K, ? super V> predicate, R target) intsize()inttoMap()<R extends Collection<V>>
MutableMap<K,R> toString()withKeyMultiValues(K key, V... values) Methods inherited from interface org.eclipse.collections.api.multimap.Multimap
toImmutable, toMutableMethods inherited from interface org.eclipse.collections.api.multimap.MutableMultimap
asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, get, getIfAbsentPutAll, newEmpty, rejectKeysMultiValues, rejectKeysValues, removeAll, replaceValues, selectKeysMultiValues, selectKeysValues, withKeyValue
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
put
- Specified by:
putin interfaceMutableMultimap<K,V>
-
add
- Specified by:
addin interfaceMutableMultimap<K,V>
-
remove
- Specified by:
removein interfaceMutableMultimap<K,V>
-
withKeyMultiValues
- Specified by:
withKeyMultiValuesin interfaceMutableMultimap<K,V>
-
putAllPairs
- Specified by:
putAllPairsin interfaceMutableMultimap<K,V>
-
putAllPairs
- Specified by:
putAllPairsin interfaceMutableMultimap<K,V>
-
putAll
- Specified by:
putAllin interfaceMutableMultimap<K,V>
-
putAll
- Specified by:
putAllin interfaceMutableMultimap<K,V>
-
clear
public void clear()- Specified by:
clearin interfaceMutableMultimap<K,V>
-
isEmpty
public boolean isEmpty() -
notEmpty
public boolean notEmpty() -
forEachValue
- Specified by:
forEachValuein interfaceMultimap<K,V>
-
forEachKey
- Specified by:
forEachKeyin interfaceMultimap<K,V>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceMultimap<K,V>
-
forEachKeyMultiValues
- Specified by:
forEachKeyMultiValuesin interfaceMultimap<K,V>
-
size
public int size() -
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceMultimap<K,V>
-
containsKey
- Specified by:
containsKeyin interfaceMultimap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMultimap<K,V>
-
containsKeyAndValue
- Specified by:
containsKeyAndValuein interfaceMultimap<K,V>
-
keysView
-
keySet
-
keyBag
-
multiValuesView
- Specified by:
multiValuesViewin interfaceMultimap<K,V>
-
valuesView
- Specified by:
valuesViewin interfaceMultimap<K,V>
-
keyMultiValuePairsView
- Specified by:
keyMultiValuePairsViewin interfaceMultimap<K,V>
-
keyValuePairsView
- Specified by:
keyValuePairsViewin interfaceMultimap<K,V>
-
toMap
-
toMap
-
selectKeysValues
public <R extends MutableMultimap<K,V>> R selectKeysValues(Predicate2<? super K, ? super V> predicate, R target) - Specified by:
selectKeysValuesin interfaceMultimap<K,V>
-
rejectKeysValues
public <R extends MutableMultimap<K,V>> R rejectKeysValues(Predicate2<? super K, ? super V> predicate, R target) - Specified by:
rejectKeysValuesin interfaceMultimap<K,V>
-
selectKeysMultiValues
public <R extends MutableMultimap<K,V>> R selectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate, R target) - Specified by:
selectKeysMultiValuesin interfaceMultimap<K,V>
-
rejectKeysMultiValues
public <R extends MutableMultimap<K,V>> R rejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate, R target) - Specified by:
rejectKeysMultiValuesin interfaceMultimap<K,V>
-
collectKeysValues
public <K2,V2, R collectKeysValuesR extends MutableMultimap<K2, V2>> (Function2<? super K, ? super V, Pair<K2, V2>> function, R target) - Specified by:
collectKeysValuesin interfaceMultimap<K,V>
-
collectKeyMultiValues
public <K2,V2, R collectKeyMultiValuesR extends MutableMultimap<K2, V2>> (Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction, R target) - Specified by:
collectKeyMultiValuesin interfaceMultimap<K,V>
-
collectValues
public <V2,R extends MutableMultimap<K, R collectValuesV2>> (Function<? super V, ? extends V2> function, R target) - Specified by:
collectValuesin interfaceMultimap<K,V>
-