public final class EqHash2DMap<K1,K2,V> extends Object implements X2DMap<K1,K2,V>, Composition
XIterable.Executor<E>| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K1 key1,
K2 key2,
V value) |
V |
ensure(K1 key1,
K2 key2,
Function<? super K2,V> valueSupplier) |
EqHashTable<K1,EqHashTable<K2,V>> |
get() |
EqHashTable<K2,V> |
get(K1 key1) |
V |
get(K1 key1,
K2 key2) |
<P extends Consumer<? super KeyValue<K1,? extends XGettingMap<K2,V>>>> |
iterate(P procedure)
Executes the given procedure for each element of the
XIterable
until all elements have been processed or the action throws an
exception. |
<PIE extends Consumer<? super KeyValue<K2,V>>> |
iterateInnerEntries(PIE procedure) |
<PK1 extends Consumer<? super K1>> |
iterateKeys1(PK1 procedure) |
<PK2 extends Consumer<? super K2>> |
iterateKeys2(PK2 procedure) |
<PV extends Consumer<? super V>> |
iterateValues(PV procedure) |
static <K1,K2,V> EqHash2DMap<K1,K2,V> |
New() |
static <K1,K2,V> EqHash2DMap<K1,K2,V> |
New(HashEqualator<K1> k1HashEqualator,
HashEqualator<K2> k2HashEqualator) |
boolean |
put(K1 key1,
K2 key2,
V value) |
public static final <K1,K2,V> EqHash2DMap<K1,K2,V> New()
public static final <K1,K2,V> EqHash2DMap<K1,K2,V> New(HashEqualator<K1> k1HashEqualator, HashEqualator<K2> k2HashEqualator)
public final <P extends Consumer<? super KeyValue<K1,? extends XGettingMap<K2,V>>>> P iterate(P procedure)
XIterableXIterable
until all elements have been processed or the action throws an
exception. Unless otherwise specified by the implementing class,
procedures are performed in the order of iteration (if an iteration order
is specified). Exceptions thrown by the procedure are relayed to the
caller.Iterable.forEach(Consumer).public final EqHashTable<K1,EqHashTable<K2,V>> get()
get in interface XGetting2DMap<K1,K2,V>public final EqHashTable<K2,V> get(K1 key1)
get in interface XGetting2DMap<K1,K2,V>public final <PK1 extends Consumer<? super K1>> PK1 iterateKeys1(PK1 procedure)
iterateKeys1 in interface XGetting2DMap<K1,K2,V>public final <PK2 extends Consumer<? super K2>> PK2 iterateKeys2(PK2 procedure)
iterateKeys2 in interface XGetting2DMap<K1,K2,V>public final <PV extends Consumer<? super V>> PV iterateValues(PV procedure)
iterateValues in interface XGetting2DMap<K1,K2,V>public <PIE extends Consumer<? super KeyValue<K2,V>>> PIE iterateInnerEntries(PIE procedure)
iterateInnerEntries in interface XGetting2DMap<K1,K2,V>Copyright © 2022 MicroStream Software. All rights reserved.