public abstract class AbstractMultimap<K,V,C extends com.gs.collections.api.RichIterable<V>> extends Object implements com.gs.collections.api.multimap.Multimap<K,V>
| Constructor and Description |
|---|
AbstractMultimap() |
| Modifier and Type | Method and Description |
|---|---|
<K2,V2,R extends com.gs.collections.api.multimap.MutableMultimap<K2,V2>> |
collectKeysValues(com.gs.collections.api.block.function.Function2<? super K,? super V,com.gs.collections.api.tuple.Pair<K2,V2>> function,
R target) |
<V2,R extends com.gs.collections.api.multimap.MutableMultimap<K,V2>> |
collectValues(com.gs.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(com.gs.collections.api.block.procedure.Procedure<? super K> procedure) |
void |
forEachKeyMultiValues(com.gs.collections.api.block.procedure.Procedure2<K,? super Iterable<V>> procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.Procedure2<K,V> procedure) |
void |
forEachValue(com.gs.collections.api.block.procedure.Procedure<? super V> procedure) |
int |
hashCode()
Returns the hash code for this multimap.
|
com.gs.collections.api.bag.Bag<K> |
keyBag() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.Pair<K,com.gs.collections.api.RichIterable<V>>> |
keyMultiValuePairsView() |
com.gs.collections.api.RichIterable<K> |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.Pair<K,V>> |
keyValuePairsView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<V>> |
multiValuesView() |
boolean |
notEmpty() |
<R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> |
rejectKeysMultiValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate,
R target) |
<R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> |
rejectKeysValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super V> predicate,
R target) |
<R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> |
selectKeysMultiValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate,
R target) |
<R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> |
selectKeysValues(com.gs.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(). |
com.gs.collections.api.RichIterable<V> |
valuesView() |
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public com.gs.collections.api.RichIterable<K> keysView()
public com.gs.collections.api.RichIterable<com.gs.collections.api.RichIterable<V>> multiValuesView()
public com.gs.collections.api.bag.Bag<K> keyBag()
public com.gs.collections.api.RichIterable<V> valuesView()
public com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.Pair<K,com.gs.collections.api.RichIterable<V>>> keyMultiValuePairsView()
public com.gs.collections.api.RichIterable<com.gs.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 com.gs.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(com.gs.collections.api.block.procedure.Procedure<? super V> procedure)
public void forEachKey(com.gs.collections.api.block.procedure.Procedure<? super K> procedure)
public void forEachKeyValue(com.gs.collections.api.block.procedure.Procedure2<K,V> procedure)
public void forEachKeyMultiValues(com.gs.collections.api.block.procedure.Procedure2<K,? super Iterable<V>> procedure)
public <R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> R selectKeysValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super V> predicate, R target)
public <R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> R rejectKeysValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super V> predicate, R target)
public <R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> R selectKeysMultiValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate, R target)
public <R extends com.gs.collections.api.multimap.MutableMultimap<K,V>> R rejectKeysMultiValues(com.gs.collections.api.block.predicate.Predicate2<? super K,? super Iterable<V>> predicate, R target)
public <K2,V2,R extends com.gs.collections.api.multimap.MutableMultimap<K2,V2>> R collectKeysValues(com.gs.collections.api.block.function.Function2<? super K,? super V,com.gs.collections.api.tuple.Pair<K2,V2>> function, R target)
Copyright © 2004–2016. All rights reserved.