KEYTYPE - key typeVALUETYPE - value typeCOLLTYPE - contained collection type@NotThreadSafe public abstract class AbstractMultiConcurrentHashMap<KEYTYPE,VALUETYPE,COLLTYPE extends Collection<VALUETYPE>> extends CommonsConcurrentHashMap<KEYTYPE,COLLTYPE> implements IMultiMap<KEYTYPE,VALUETYPE,COLLTYPE>
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AbstractMultiConcurrentHashMap() |
AbstractMultiConcurrentHashMap(KEYTYPE aKey,
COLLTYPE aCollection) |
AbstractMultiConcurrentHashMap(KEYTYPE aKey,
VALUETYPE aValue) |
AbstractMultiConcurrentHashMap(Map<? extends KEYTYPE,? extends COLLTYPE> aCont) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract COLLTYPE |
createNewCollection() |
COLLTYPE |
getOrCreate(KEYTYPE aKey)
Get or create the collection of the specified key.
|
getCloneclear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesclonefinalize, getClass, notify, notifyAll, wait, wait, waitcontainsSingle, forEachSingle, getTotalValueCount, putAllIn, putSingle, removeSingleaddAll, copyOfEntrySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, findFirstEntry, findFirstKey, findFirstValue, getAsUnmodifiable, getFirstEntry, getFirstKey, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, putIf, putIfNotNull, removeAll, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesgetClonepublic AbstractMultiConcurrentHashMap()
public AbstractMultiConcurrentHashMap(@Nonnull KEYTYPE aKey, @Nullable VALUETYPE aValue)
public AbstractMultiConcurrentHashMap(@Nonnull KEYTYPE aKey, @Nonnull COLLTYPE aCollection)
@Nonnull @ReturnsMutableCopy protected abstract COLLTYPE createNewCollection()
@Nonnull @ReturnsMutableObject(value="design") public COLLTYPE getOrCreate(@Nonnull KEYTYPE aKey)
IMultiMapgetOrCreate in interface IMultiMap<KEYTYPE,VALUETYPE,COLLTYPE extends Collection<VALUETYPE>>aKey - The key to use. May not be null.null.Copyright © 2014–2016 Philip Helger. All rights reserved.