public abstract class AbstractMultimap<K,V,C extends RichIterable<V>> extends Object implements Multimap<K,V>
| Constructor and Description |
|---|
AbstractMultimap() |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2,R extends MutableMultimap<K2,V2>> |
collectKeyMultiValues(Function<? super K,? extends K2> keyFunction,
Function<? super V,? extends V2> valueFunction,
R target) |
<K2,V2,R extends MutableMultimap<K2,V2>> |
collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function,
R target) |
<V2,R extends MutableMultimap<K,V2>> |
collectValues(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(Procedure<? super K> procedure) |
void |
forEachKeyMultiValues(Procedure2<? super K,? super RichIterable<V>> procedure) |
void |
forEachKeyValue(Procedure2<? super K,? super V> procedure) |
void |
forEachValue(Procedure<? super V> procedure) |
int |
hashCode()
Returns the hash code for this multimap.
|
Bag<K> |
keyBag() |
RichIterable<Pair<K,RichIterable<V>>> |
keyMultiValuePairsView() |
RichIterable<K> |
keysView() |
RichIterable<Pair<K,V>> |
keyValuePairsView() |
RichIterable<RichIterable<V>> |
multiValuesView() |
boolean |
notEmpty() |
<R extends MutableMultimap<K,V>> |
rejectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate,
R target) |
<R extends MutableMultimap<K,V>> |
rejectKeysValues(Predicate2<? super K,? super V> predicate,
R target) |
<R extends MutableMultimap<K,V>> |
selectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate,
R target) |
<R extends MutableMultimap<K,V>> |
selectKeysValues(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(). |
RichIterable<V> |
valuesView() |
collectKeyMultiValues, collectKeysValues, collectValues, flip, get, isEmpty, keySet, newEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, size, sizeDistinct, toImmutable, toMap, toMap, toMutablepublic boolean containsKey(Object key)
containsKey in interface Multimap<K,V>public boolean containsValue(Object value)
containsValue in interface Multimap<K,V>public boolean containsKeyAndValue(Object key, Object value)
containsKeyAndValue in interface Multimap<K,V>public RichIterable<RichIterable<V>> multiValuesView()
multiValuesView in interface Multimap<K,V>public RichIterable<V> valuesView()
valuesView in interface Multimap<K,V>public RichIterable<Pair<K,RichIterable<V>>> keyMultiValuePairsView()
keyMultiValuePairsView in interface Multimap<K,V>public RichIterable<Pair<K,V>> keyValuePairsView()
keyValuePairsView in interface Multimap<K,V>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().
public String toString()
toString on the map returned by Multimap.toMap().public void forEachValue(Procedure<? super V> procedure)
forEachValue in interface Multimap<K,V>public void forEachKey(Procedure<? super K> procedure)
forEachKey in interface Multimap<K,V>public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
forEachKeyValue in interface Multimap<K,V>public void forEachKeyMultiValues(Procedure2<? super K,? super RichIterable<V>> procedure)
forEachKeyMultiValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R selectKeysValues(Predicate2<? super K,? super V> predicate, R target)
selectKeysValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R rejectKeysValues(Predicate2<? super K,? super V> predicate, R target)
rejectKeysValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R selectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate, R target)
selectKeysMultiValues in interface Multimap<K,V>public <R extends MutableMultimap<K,V>> R rejectKeysMultiValues(Predicate2<? super K,? super RichIterable<V>> predicate, R target)
rejectKeysMultiValues in interface Multimap<K,V>public <K2,V2,R extends MutableMultimap<K2,V2>> R collectKeysValues(Function2<? super K,? super V,Pair<K2,V2>> function, R target)
collectKeysValues in interface Multimap<K,V>public <K2,V2,R extends MutableMultimap<K2,V2>> R collectKeyMultiValues(Function<? super K,? extends K2> keyFunction, Function<? super V,? extends V2> valueFunction, R target)
collectKeyMultiValues in interface Multimap<K,V>public <V2,R extends MutableMultimap<K,V2>> R collectValues(Function<? super V,? extends V2> function, R target)
collectValues in interface Multimap<K,V>Copyright © 2004–2022. All rights reserved.