public abstract class AbstractMultimap<K,V,C extends org.eclipse.collections.api.RichIterable<V>> extends Object implements org.eclipse.collections.api.multimap.Multimap<K,V>
| Constructor and Description |
|---|
AbstractMultimap() |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2,R extends org.eclipse.collections.api.multimap.MutableMultimap<K2,V2>> |
collectKeysValues(org.eclipse.collections.api.block.function.Function2<? super K,? super V,org.eclipse.collections.api.tuple.Pair<K2,V2>> function,
R target) |
<V2,R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V2>> |
collectValues(org.eclipse.collections.api.block.function.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 object) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyMultiValues(org.eclipse.collections.api.block.procedure.Procedure2<K,? super Iterable<V>> procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<K,V> procedure) |
void |
forEachValue(org.eclipse.collections.api.block.procedure.Procedure<? super V> procedure) |
int |
hashCode()
Returns the hash code for this multimap.
|
org.eclipse.collections.api.bag.Bag<K> |
keyBag() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.Pair<K,org.eclipse.collections.api.RichIterable<V>>> |
keyMultiValuePairsView() |
org.eclipse.collections.api.RichIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.Pair<K,V>> |
keyValuePairsView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.RichIterable<V>> |
multiValuesView() |
boolean |
notEmpty() |
<R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> |
rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate,
R target) |
<R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> |
rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate,
R target) |
<R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> |
selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate,
R target) |
<R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> |
selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate,
R target) |
String |
toString()
Returns a string representation of the multimap, generated by calling
toString on the map returned by Multimap.toMap(). |
org.eclipse.collections.api.RichIterable<V> |
valuesView() |
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public org.eclipse.collections.api.RichIterable<K> keysView()
public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.RichIterable<V>> multiValuesView()
public org.eclipse.collections.api.bag.Bag<K> keyBag()
public org.eclipse.collections.api.RichIterable<V> valuesView()
public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.Pair<K,org.eclipse.collections.api.RichIterable<V>>> keyMultiValuePairsView()
public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.Pair<K,V>> keyValuePairsView()
public boolean equals(Object object)
public int hashCode()
The hash code of a multimap is defined as the hash code of the map view,
as returned by Multimap.toMap().
hashCode in interface org.eclipse.collections.api.multimap.Multimap<K,V>hashCode in class ObjectMap.hashCode()public String toString()
toString on the map returned by Multimap.toMap().public boolean notEmpty()
public void forEachValue(org.eclipse.collections.api.block.procedure.Procedure<? super V> procedure)
public void forEachKey(org.eclipse.collections.api.block.procedure.Procedure<? super K> procedure)
public void forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<K,V> procedure)
public void forEachKeyMultiValues(org.eclipse.collections.api.block.procedure.Procedure2<K,? super Iterable<V>> procedure)
public <R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> R selectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate, R target)
public <R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> R rejectKeysValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super V> predicate, R target)
public <R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> R selectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate, R target)
public <R extends org.eclipse.collections.api.multimap.MutableMultimap<K,V>> R rejectKeysMultiValues(org.eclipse.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate, R target)
public <K2,V2,R extends org.eclipse.collections.api.multimap.MutableMultimap<K2,V2>> R collectKeysValues(org.eclipse.collections.api.block.function.Function2<? super K,? super V,org.eclipse.collections.api.tuple.Pair<K2,V2>> function, R target)
Copyright © 2004–2017. All rights reserved.