Package one.microstream.collections
Class EqHash2DMap<K1,K2,V>
java.lang.Object
one.microstream.collections.EqHash2DMap<K1,K2,V>
- All Implemented Interfaces:
X2DMap<K1,K2,V>
,XGetting2DMap<K1,K2,V>
,XIterable<KeyValue<K1,? extends XGettingMap<K2,V>>>
,Composition
public final class EqHash2DMap<K1,K2,V> extends Object implements X2DMap<K1,K2,V>, Composition
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Method Summary
Modifier and Type Method 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>>>>
Piterate(P procedure)
Executes the given procedure for each element of theXIterable
until all elements have been processed or the action throws an exception.<PIE extends Consumer<? super KeyValue<K2, V>>>
PIEiterateInnerEntries(PIE procedure)
<PK1 extends Consumer<? super K1>>
PK1iterateKeys1(PK1 procedure)
<PK2 extends Consumer<? super K2>>
PK2iterateKeys2(PK2 procedure)
<PV extends Consumer<? super V>>
PViterateValues(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)
-
Method Details
-
New
-
New
public static final <K1, K2, V> EqHash2DMap<K1,K2,V> New(HashEqualator<K1> k1HashEqualator, HashEqualator<K2> k2HashEqualator) -
iterate
public final <P extends Consumer<? super KeyValue<K1, ? extends XGettingMap<K2, V>>>> P iterate(P procedure)Description copied from interface:XIterable
Executes the given procedure for each element of theXIterable
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.
Should be identical toIterable.forEach(Consumer)
. -
get
- Specified by:
get
in interfaceXGetting2DMap<K1,K2,V>
-
get
- Specified by:
get
in interfaceXGetting2DMap<K1,K2,V>
-
get
- Specified by:
get
in interfaceXGetting2DMap<K1,K2,V>
-
add
-
put
-
ensure
-
iterateKeys1
- Specified by:
iterateKeys1
in interfaceXGetting2DMap<K1,K2,V>
-
iterateKeys2
- Specified by:
iterateKeys2
in interfaceXGetting2DMap<K1,K2,V>
-
iterateValues
- Specified by:
iterateValues
in interfaceXGetting2DMap<K1,K2,V>
-
iterateInnerEntries
- Specified by:
iterateInnerEntries
in interfaceXGetting2DMap<K1,K2,V>
-