Class AbstractMutableSetMultimap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.multimap.AbstractMultimap<K,V,C>
-
- org.eclipse.collections.impl.multimap.AbstractMutableMultimap<K,V,MutableSet<V>>
-
- org.eclipse.collections.impl.multimap.set.AbstractMutableSetMultimap<K,V>
-
- All Implemented Interfaces:
Multimap<K,V>
,MutableMultimap<K,V>
,MutableSetIterableMultimap<K,V>
,MutableSetMultimap<K,V>
,SetMultimap<K,V>
,UnsortedSetMultimap<K,V>
- Direct Known Subclasses:
MultiReaderUnifiedSetMultimap
,UnifiedSetMultimap
,UnifiedSetWithHashingStrategyMultimap
public abstract class AbstractMutableSetMultimap<K,V> extends AbstractMutableMultimap<K,V,MutableSet<V>> implements MutableSetMultimap<K,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableSetMultimap<K,V>
asSynchronized()
<K2,V2>
MutableBagMultimap<K2,V2>collectKeyMultiValues(Function<? super K,? extends K2> keyFunction, Function<? super V,? extends V2> valueFunction)
<K2,V2>
MutableBagMultimap<K2,V2>collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function)
<V2> MutableBagMultimap<K,V2>
collectValues(Function<? super V,? extends V2> function)
void
forEachKeyMutableSet(Procedure2<? super K,? super MutableSet<V>> procedure)
ImmutableSetMultimap<K,V>
toImmutable()
MutableSetMultimap<K,V>
toMutable()
-
Methods inherited from class org.eclipse.collections.impl.multimap.AbstractMutableMultimap
clear, get, getIfAbsentPutAll, isEmpty, keySet, put, putAll, putAll, readExternal, remove, removeAll, replaceValues, size, sizeDistinct, toMap, toMap, writeExternal
-
Methods inherited from class org.eclipse.collections.impl.multimap.AbstractMultimap
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesView
-
Methods inherited from interface org.eclipse.collections.api.multimap.Multimap
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keySet, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, size, sizeDistinct, toMap, toMap, valuesView
-
Methods inherited from interface org.eclipse.collections.api.multimap.MutableMultimap
add, clear, flip, newEmpty, put, putAll, putAll, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, remove, selectKeysMultiValues, selectKeysValues
-
Methods inherited from interface org.eclipse.collections.api.multimap.set.MutableSetMultimap
flip, get, getIfAbsentPutAll, newEmpty, rejectKeysMultiValues, rejectKeysValues, removeAll, replaceValues, selectKeysMultiValues, selectKeysValues, withKeyMultiValues, withKeyValue
-
-
-
-
Method Detail
-
toMutable
public MutableSetMultimap<K,V> toMutable()
-
toImmutable
public ImmutableSetMultimap<K,V> toImmutable()
- Specified by:
toImmutable
in interfaceMultimap<K,V>
- Specified by:
toImmutable
in interfaceUnsortedSetMultimap<K,V>
-
forEachKeyMutableSet
public void forEachKeyMutableSet(Procedure2<? super K,? super MutableSet<V>> procedure)
- Specified by:
forEachKeyMutableSet
in interfaceMutableSetMultimap<K,V>
-
collectKeysValues
public <K2,V2> MutableBagMultimap<K2,V2> collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collectKeysValues
in interfaceMultimap<K,V>
- Specified by:
collectKeysValues
in interfaceMutableMultimap<K,V>
- Specified by:
collectKeysValues
in interfaceMutableSetIterableMultimap<K,V>
- Specified by:
collectKeysValues
in interfaceMutableSetMultimap<K,V>
- Specified by:
collectKeysValues
in interfaceUnsortedSetMultimap<K,V>
-
collectKeyMultiValues
public <K2,V2> MutableBagMultimap<K2,V2> collectKeyMultiValues(Function<? super K,? extends K2> keyFunction, Function<? super V,? extends V2> valueFunction)
- Specified by:
collectKeyMultiValues
in interfaceMultimap<K,V>
- Specified by:
collectKeyMultiValues
in interfaceMutableMultimap<K,V>
- Specified by:
collectKeyMultiValues
in interfaceMutableSetIterableMultimap<K,V>
- Specified by:
collectKeyMultiValues
in interfaceMutableSetMultimap<K,V>
- Specified by:
collectKeyMultiValues
in interfaceUnsortedSetMultimap<K,V>
-
collectValues
public <V2> MutableBagMultimap<K,V2> collectValues(Function<? super V,? extends V2> function)
- Specified by:
collectValues
in interfaceMultimap<K,V>
- Specified by:
collectValues
in interfaceMutableMultimap<K,V>
- Specified by:
collectValues
in interfaceMutableSetIterableMultimap<K,V>
- Specified by:
collectValues
in interfaceMutableSetMultimap<K,V>
- Specified by:
collectValues
in interfaceUnsortedSetMultimap<K,V>
-
asSynchronized
public MutableSetMultimap<K,V> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableMultimap<K,V>
- Specified by:
asSynchronized
in interfaceMutableSetIterableMultimap<K,V>
- Specified by:
asSynchronized
in interfaceMutableSetMultimap<K,V>
-
-