Class ImmutableListMultimapImpl<K,V>
java.lang.Object
org.eclipse.collections.impl.multimap.AbstractMultimap<K,V,C>
org.eclipse.collections.impl.multimap.AbstractImmutableMultimap<K,V,ImmutableList<V>>
org.eclipse.collections.impl.multimap.list.ImmutableListMultimapImpl<K,V>
- All Implemented Interfaces:
Serializable,ImmutableMultimap<K,,V> ImmutableListMultimap<K,,V> ListMultimap<K,,V> Multimap<K,,V> OrderedIterableMultimap<K,,V> ReversibleIterableMultimap<K,V>
public final class ImmutableListMultimapImpl<K,V>
extends AbstractImmutableMultimap<K,V,ImmutableList<V>>
implements ImmutableListMultimap<K,V>, Serializable
The default ImmutableListMultimap implementation.
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription<K2,V2> ImmutableBagMultimap<K2, V2> collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) <K2,V2> ImmutableBagMultimap<K2, V2> collectKeysValues(Function2<? super K, ? super V, Pair<K2, V2>> function) <V2> ImmutableListMultimap<K,V2> collectValues(Function<? super V, ? extends V2> function) flip()voidforEachKeyImmutableList(Procedure2<? super K, ? super ImmutableList<V>> procedure) newEmpty()newWithAll(K key, Iterable<? extends V> values) newWithout(Object key, Object value) newWithoutAll(Object key) rejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate) rejectKeysValues(Predicate2<? super K, ? super V> predicate) selectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate) selectKeysValues(Predicate2<? super K, ? super V> predicate) Methods inherited from class org.eclipse.collections.impl.multimap.AbstractImmutableMultimap
get, isEmpty, keySet, size, sizeDistinct, toMap, toMapMethods 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, valuesViewMethods inherited from interface org.eclipse.collections.api.multimap.list.ImmutableListMultimap
getMethods 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
-
Constructor Details
-
ImmutableListMultimapImpl
-
ImmutableListMultimapImpl
-
-
Method Details
-
forEachKeyImmutableList
- Specified by:
forEachKeyImmutableListin interfaceImmutableListMultimap<K,V>
-
newEmpty
- Specified by:
newEmptyin interfaceImmutableListMultimap<K,V> - Specified by:
newEmptyin interfaceImmutableMultimap<K,V> - Specified by:
newEmptyin interfaceListMultimap<K,V> - Specified by:
newEmptyin interfaceMultimap<K,V> - Specified by:
newEmptyin interfaceOrderedIterableMultimap<K,V> - Specified by:
newEmptyin interfaceReversibleIterableMultimap<K,V>
-
toMutable
-
toImmutable
- Specified by:
toImmutablein interfaceListMultimap<K,V> - Specified by:
toImmutablein interfaceMultimap<K,V> - Overrides:
toImmutablein classAbstractImmutableMultimap<K,V, ImmutableList<V>>
-
newWith
- Specified by:
newWithin interfaceImmutableListMultimap<K,V> - Specified by:
newWithin interfaceImmutableMultimap<K,V>
-
newWithout
- Specified by:
newWithoutin interfaceImmutableListMultimap<K,V> - Specified by:
newWithoutin interfaceImmutableMultimap<K,V>
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableListMultimap<K,V> - Specified by:
newWithAllin interfaceImmutableMultimap<K,V>
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableListMultimap<K,V> - Specified by:
newWithoutAllin interfaceImmutableMultimap<K,V>
-
flip
-
selectKeysValues
- Specified by:
selectKeysValuesin interfaceImmutableListMultimap<K,V> - Specified by:
selectKeysValuesin interfaceImmutableMultimap<K,V> - Specified by:
selectKeysValuesin interfaceListMultimap<K,V> - Specified by:
selectKeysValuesin interfaceMultimap<K,V> - Specified by:
selectKeysValuesin interfaceOrderedIterableMultimap<K,V> - Specified by:
selectKeysValuesin interfaceReversibleIterableMultimap<K,V>
-
rejectKeysValues
- Specified by:
rejectKeysValuesin interfaceImmutableListMultimap<K,V> - Specified by:
rejectKeysValuesin interfaceImmutableMultimap<K,V> - Specified by:
rejectKeysValuesin interfaceListMultimap<K,V> - Specified by:
rejectKeysValuesin interfaceMultimap<K,V> - Specified by:
rejectKeysValuesin interfaceOrderedIterableMultimap<K,V> - Specified by:
rejectKeysValuesin interfaceReversibleIterableMultimap<K,V>
-
selectKeysMultiValues
public ImmutableListMultimap<K,V> selectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate) - Specified by:
selectKeysMultiValuesin interfaceImmutableListMultimap<K,V> - Specified by:
selectKeysMultiValuesin interfaceImmutableMultimap<K,V> - Specified by:
selectKeysMultiValuesin interfaceListMultimap<K,V> - Specified by:
selectKeysMultiValuesin interfaceMultimap<K,V> - Specified by:
selectKeysMultiValuesin interfaceOrderedIterableMultimap<K,V> - Specified by:
selectKeysMultiValuesin interfaceReversibleIterableMultimap<K,V>
-
rejectKeysMultiValues
public ImmutableListMultimap<K,V> rejectKeysMultiValues(Predicate2<? super K, ? super RichIterable<V>> predicate) - Specified by:
rejectKeysMultiValuesin interfaceImmutableListMultimap<K,V> - Specified by:
rejectKeysMultiValuesin interfaceImmutableMultimap<K,V> - Specified by:
rejectKeysMultiValuesin interfaceListMultimap<K,V> - Specified by:
rejectKeysMultiValuesin interfaceMultimap<K,V> - Specified by:
rejectKeysMultiValuesin interfaceOrderedIterableMultimap<K,V> - Specified by:
rejectKeysMultiValuesin interfaceReversibleIterableMultimap<K,V>
-
collectKeysValues
public <K2,V2> ImmutableBagMultimap<K2,V2> collectKeysValues(Function2<? super K, ? super V, Pair<K2, V2>> function) - Specified by:
collectKeysValuesin interfaceImmutableListMultimap<K,V> - Specified by:
collectKeysValuesin interfaceImmutableMultimap<K,V> - Specified by:
collectKeysValuesin interfaceListMultimap<K,V> - Specified by:
collectKeysValuesin interfaceMultimap<K,V> - Specified by:
collectKeysValuesin interfaceOrderedIterableMultimap<K,V>
-
collectKeyMultiValues
public <K2,V2> ImmutableBagMultimap<K2,V2> collectKeyMultiValues(Function<? super K, ? extends K2> keyFunction, Function<? super V, ? extends V2> valueFunction) - Specified by:
collectKeyMultiValuesin interfaceImmutableListMultimap<K,V> - Specified by:
collectKeyMultiValuesin interfaceImmutableMultimap<K,V> - Specified by:
collectKeyMultiValuesin interfaceListMultimap<K,V> - Specified by:
collectKeyMultiValuesin interfaceMultimap<K,V> - Specified by:
collectKeyMultiValuesin interfaceOrderedIterableMultimap<K,V>
-
collectValues
- Specified by:
collectValuesin interfaceImmutableListMultimap<K,V> - Specified by:
collectValuesin interfaceImmutableMultimap<K,V> - Specified by:
collectValuesin interfaceListMultimap<K,V> - Specified by:
collectValuesin interfaceMultimap<K,V> - Specified by:
collectValuesin interfaceOrderedIterableMultimap<K,V> - Specified by:
collectValuesin interfaceReversibleIterableMultimap<K,V>
-