KEYTYPE - Map key typeVALUETYPE - Map value typepublic class CommonsWeakHashMap<KEYTYPE,VALUETYPE> extends WeakHashMap<KEYTYPE,VALUETYPE> implements ICommonsMap<KEYTYPE,VALUETYPE>
WeakHashMap implementation based on ICommonsMap.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CommonsWeakHashMap() |
CommonsWeakHashMap(Collection<? extends COLLTYPE> aValues,
Function<? super COLLTYPE,? extends KEYTYPE> aKeyMapper,
Function<? super COLLTYPE,? extends VALUETYPE> aValueMapper) |
CommonsWeakHashMap(int nInitialCapacity) |
CommonsWeakHashMap(int nInitialCapacity,
float fLoadFactor) |
CommonsWeakHashMap(Map<? extends KEYTYPE,? extends VALUETYPE> aMap) |
CommonsWeakHashMap(Map<? extends SRCKEYTYPE,? extends SRCVALUETYPE> aValues,
Function<? super SRCKEYTYPE,? extends KEYTYPE> aKeyMapper,
Function<? super SRCVALUETYPE,? extends VALUETYPE> aValueMapper) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> CommonsWeakHashMap<K,V> |
createInstance()
Create a new empty map.
|
CommonsWeakHashMap<KEYTYPE,VALUETYPE> |
getClone() |
clear, containsKey, containsValue, entrySet, forEach, get, isEmpty, keySet, put, putAll, remove, replaceAll, size, valuesclone, equals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfEntrySet, copyOfKeySet, copyOfKeySet, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, 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, valuespublic CommonsWeakHashMap()
public CommonsWeakHashMap(@Nonnegative int nInitialCapacity)
public CommonsWeakHashMap(@Nonnegative int nInitialCapacity, @Nonnegative float fLoadFactor)
public CommonsWeakHashMap(@Nullable Map<? extends KEYTYPE,? extends VALUETYPE> aMap)
public CommonsWeakHashMap(@Nullable Collection<? extends COLLTYPE> aValues, @Nonnull Function<? super COLLTYPE,? extends KEYTYPE> aKeyMapper, @Nonnull Function<? super COLLTYPE,? extends VALUETYPE> aValueMapper)
@Nonnull @ReturnsMutableCopy public <K,V> CommonsWeakHashMap<K,V> createInstance()
ICommonsMapCommonsHashMap.createInstance in interface ICommonsMap<KEYTYPE,VALUETYPE>K - Map key typeV - Map value typenull.@Nonnull @ReturnsMutableCopy public CommonsWeakHashMap<KEYTYPE,VALUETYPE> getClone()
getClone in interface ICloneable<ICommonsMap<KEYTYPE,VALUETYPE>>Copyright © 2014–2019 Philip Helger. All rights reserved.