Class AbstractMutableListMultimap<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.multimap.AbstractMultimap<K,V,C>
-
- org.eclipse.collections.impl.multimap.AbstractMutableMultimap<K,V,MutableList<V>>
-
- org.eclipse.collections.impl.multimap.list.AbstractMutableListMultimap<K,V>
-
- All Implemented Interfaces:
ListMultimap<K,V>,MutableListMultimap<K,V>,Multimap<K,V>,MutableMultimap<K,V>,OrderedIterableMultimap<K,V>,ReversibleIterableMultimap<K,V>
- Direct Known Subclasses:
FastListMultimap,MultiReaderFastListMultimap
public abstract class AbstractMutableListMultimap<K,V> extends AbstractMutableMultimap<K,V,MutableList<V>> implements MutableListMultimap<K,V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableListMultimap<K,V>asSynchronized()<K2,V2>
HashBagMultimap<K2,V2>collectKeyMultiValues(Function<? super K,? extends K2> keyFunction, Function<? super V,? extends V2> valueFunction)<K2,V2>
HashBagMultimap<K2,V2>collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function)<V2> FastListMultimap<K,V2>collectValues(Function<? super V,? extends V2> function)voidforEachKeyMutableList(Procedure2<? super K,? super MutableList<V>> procedure)ImmutableListMultimap<K,V>toImmutable()MutableListMultimap<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.list.MutableListMultimap
flip, get, getIfAbsentPutAll, newEmpty, rejectKeysMultiValues, rejectKeysValues, removeAll, replaceValues, selectKeysMultiValues, selectKeysValues, withKeyMultiValues, withKeyValue
-
Methods inherited from interface org.eclipse.collections.api.multimap.MutableMultimap
add, clear, flip, newEmpty, put, putAll, putAll, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, remove, selectKeysMultiValues, selectKeysValues
-
-
-
-
Method Detail
-
forEachKeyMutableList
public void forEachKeyMutableList(Procedure2<? super K,? super MutableList<V>> procedure)
- Specified by:
forEachKeyMutableListin interfaceMutableListMultimap<K,V>
-
toMutable
public MutableListMultimap<K,V> toMutable()
-
toImmutable
public ImmutableListMultimap<K,V> toImmutable()
- Specified by:
toImmutablein interfaceListMultimap<K,V>- Specified by:
toImmutablein interfaceMultimap<K,V>
-
collectKeysValues
public <K2,V2> HashBagMultimap<K2,V2> collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function)
- Specified by:
collectKeysValuesin interfaceListMultimap<K,V>- Specified by:
collectKeysValuesin interfaceMultimap<K,V>- Specified by:
collectKeysValuesin interfaceMutableListMultimap<K,V>- Specified by:
collectKeysValuesin interfaceMutableMultimap<K,V>- Specified by:
collectKeysValuesin interfaceOrderedIterableMultimap<K,V>
-
collectKeyMultiValues
public <K2,V2> HashBagMultimap<K2,V2> collectKeyMultiValues(Function<? super K,? extends K2> keyFunction, Function<? super V,? extends V2> valueFunction)
- Specified by:
collectKeyMultiValuesin interfaceListMultimap<K,V>- Specified by:
collectKeyMultiValuesin interfaceMultimap<K,V>- Specified by:
collectKeyMultiValuesin interfaceMutableListMultimap<K,V>- Specified by:
collectKeyMultiValuesin interfaceMutableMultimap<K,V>- Specified by:
collectKeyMultiValuesin interfaceOrderedIterableMultimap<K,V>
-
collectValues
public <V2> FastListMultimap<K,V2> collectValues(Function<? super V,? extends V2> function)
- Specified by:
collectValuesin interfaceListMultimap<K,V>- Specified by:
collectValuesin interfaceMultimap<K,V>- Specified by:
collectValuesin interfaceMutableListMultimap<K,V>- Specified by:
collectValuesin interfaceMutableMultimap<K,V>- Specified by:
collectValuesin interfaceOrderedIterableMultimap<K,V>- Specified by:
collectValuesin interfaceReversibleIterableMultimap<K,V>
-
asSynchronized
public MutableListMultimap<K,V> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableListMultimap<K,V>- Specified by:
asSynchronizedin interfaceMutableMultimap<K,V>
-
-