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 booleanadd(K1 key1, K2 key2, V value)Vensure(K1 key1, K2 key2, Function<? super K2,V> valueSupplier)EqHashTable<K1,EqHashTable<K2,V>>get()EqHashTable<K2,V>get(K1 key1)Vget(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 theXIterableuntil 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)booleanput(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:XIterableExecutes the given procedure for each element of theXIterableuntil 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:
getin interfaceXGetting2DMap<K1,K2,V>
-
get
- Specified by:
getin interfaceXGetting2DMap<K1,K2,V>
-
get
- Specified by:
getin interfaceXGetting2DMap<K1,K2,V>
-
add
-
put
-
ensure
-
iterateKeys1
- Specified by:
iterateKeys1in interfaceXGetting2DMap<K1,K2,V>
-
iterateKeys2
- Specified by:
iterateKeys2in interfaceXGetting2DMap<K1,K2,V>
-
iterateValues
- Specified by:
iterateValuesin interfaceXGetting2DMap<K1,K2,V>
-
iterateInnerEntries
- Specified by:
iterateInnerEntriesin interfaceXGetting2DMap<K1,K2,V>
-