KEYTYPE - key typeVALUETYPE - value type@ThreadSafe public abstract class AbstractMultiConcurrentHashMapListBased<KEYTYPE,VALUETYPE> extends AbstractMultiConcurrentHashMap<KEYTYPE,VALUETYPE,List<VALUETYPE>> implements IMultiMapListBased<KEYTYPE,VALUETYPE>
ConcurrentHashMap
and List values.null keys are not allowed here!AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AbstractMultiConcurrentHashMapListBased() |
AbstractMultiConcurrentHashMapListBased(KEYTYPE aKey,
List<VALUETYPE> aCollection) |
AbstractMultiConcurrentHashMapListBased(KEYTYPE aKey,
VALUETYPE aValue) |
AbstractMultiConcurrentHashMapListBased(Map<? extends KEYTYPE,? extends List<VALUETYPE>> aCont) |
| Modifier and Type | Method and Description |
|---|---|
EChange |
putSingle(KEYTYPE aKey,
VALUETYPE aValue,
int nIndex)
Add a single value into the container identified by the passed key at the
specified index.
|
containsSingle, createNewCollection, getOrCreate, getTotalValueCount, putAllIn, putSingle, removeSingleclear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, valuesclone, equals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsSingle, getOrCreate, getTotalValueCount, putAllIn, putSingle, removeSinglepublic AbstractMultiConcurrentHashMapListBased()
public AbstractMultiConcurrentHashMapListBased(@Nonnull KEYTYPE aKey, @Nullable VALUETYPE aValue)
public AbstractMultiConcurrentHashMapListBased(@Nonnull KEYTYPE aKey, @Nonnull List<VALUETYPE> aCollection)
@Nonnull public final EChange putSingle(@Nonnull KEYTYPE aKey, @Nullable VALUETYPE aValue, @Nonnegative int nIndex)
IMultiMapListBasedputSingle in interface IMultiMapListBased<KEYTYPE,VALUETYPE>aKey - The key to use. May not be null.aValue - The value to be added. May be null.nIndex - The index to add the element to the list. Must be ≥ 0.EChangeCopyright © 2006–2015 phloc systems. All rights reserved.