KEYTYPE1 - Key type of outer mapKEYTYPE2 - Key type of inner mapVALUETYPE - Element typeMAPTYPE - Inner map typepublic interface IMultiMapMapBased<KEYTYPE1,KEYTYPE2,VALUETYPE,MAPTYPE extends com.helger.commons.collection.impl.ICommonsMap<KEYTYPE2,VALUETYPE>>
extends com.helger.commons.collection.impl.ICommonsMap<KEYTYPE1,MAPTYPE>
| Modifier and Type | Method and Description |
|---|---|
default boolean |
containsSingle(KEYTYPE1 aKey,
KEYTYPE2 aInnerKey)
Check a single element from the container identified by the passed keys is
present.
|
default void |
forEachSingle(com.helger.commons.functional.ITriConsumer<? super KEYTYPE1,? super KEYTYPE2,? super VALUETYPE> aConsumer) |
MAPTYPE |
getOrCreate(KEYTYPE1 aKey)
Get or create the collection of the specified key.
|
default VALUETYPE |
getSingle(KEYTYPE1 aKey,
KEYTYPE2 aInnerKey)
Get a single value from the container identified by the passed keys.
|
default long |
getTotalValueCount() |
default com.helger.commons.state.EChange |
putAllIn(Map<? extends KEYTYPE1,? extends Map<KEYTYPE2,VALUETYPE>> aMap)
Add all values into the container identified by the passed key-value-map.
|
default com.helger.commons.state.EChange |
putSingle(KEYTYPE1 aKey,
KEYTYPE2 aInnerKey,
VALUETYPE aValue)
Add a single value into the container identified by the passed key.
|
default com.helger.commons.state.EChange |
removeSingle(KEYTYPE1 aKey,
KEYTYPE2 aInnerKey)
Remove a single element from the container identified by the passed key.
|
addAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfEntrySet, copyOfKeySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, createInstance, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getAsUnmodifiable, getFirstEntry, getFirstEntry, getFirstKey, getFirstKey, getFirstValue, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, put, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, removeIf, removeIfKey, removeIfValue, removeObject, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values@Nonnull @ReturnsMutableObject(value="design") MAPTYPE getOrCreate(@Nonnull KEYTYPE1 aKey)
aKey - The key to use. May not be null.null.@Nonnull default com.helger.commons.state.EChange putSingle(@Nonnull KEYTYPE1 aKey, @Nonnull KEYTYPE2 aInnerKey, @Nullable VALUETYPE aValue)
aKey - The key to use. May not be null.aInnerKey - The key for the inner map to use. May not be null.aValue - The value to be added. May be null.EChange@Nonnull default com.helger.commons.state.EChange putAllIn(@Nonnull Map<? extends KEYTYPE1,? extends Map<KEYTYPE2,VALUETYPE>> aMap)
aMap - The key-value-map to use. May not be null.EChange@Nonnull default com.helger.commons.state.EChange removeSingle(@Nonnull KEYTYPE1 aKey, @Nonnull KEYTYPE2 aInnerKey)
aKey - The key to use. May not be null.aInnerKey - The key for the inner map to be removed. May be null.EChange@Nullable default VALUETYPE getSingle(@Nonnull KEYTYPE1 aKey, @Nonnull KEYTYPE2 aInnerKey)
aKey - The key to use. May not be null.aInnerKey - The key for the inner map to use. May not be null.null if no such value exists.default boolean containsSingle(@Nonnull KEYTYPE1 aKey, @Nonnull KEYTYPE2 aInnerKey)
aKey - The key to use. May not be null.aInnerKey - The key of the inner map to be checked. May be null.true if contained, false otherwise.@Nonnegative default long getTotalValueCount()
Copyright © 2017–2020 Philip Helger. All rights reserved.