public class WeakWeakMap<K,V> extends WeakHashMap<K,V>
WeakHashMap on why the
values in a WeakHashMap must never refer strongly to their keys.WeakHashMap,
WeakReferenceAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
WeakWeakMap()
Creates a
WeakWeakMap with default initial capacity and load
factor. |
WeakWeakMap(int pInitialCapacity)
Creates a
WeakWeakMap with the given initial capacity and
default load factor. |
WeakWeakMap(int pInitialCapacity,
float pLoadFactor)
Creates a
WeakWeakMap with the given initial capacity and
load factor. |
WeakWeakMap(Map<? extends K,? extends V> pMap)
Creates a
WeakWeakMap containing the mappings in the given map. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(Object pValue) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object pKey) |
V |
put(K pKey,
V pValue) |
void |
putAll(Map<? extends K,? extends V> pMap) |
V |
remove(Object pKey) |
Collection<V> |
values() |
clear, containsKey, forEach, isEmpty, keySet, replaceAll, sizeclone, equals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replacepublic WeakWeakMap()
WeakWeakMap with default initial capacity and load
factor.WeakHashMap.WeakHashMap()public WeakWeakMap(int pInitialCapacity)
WeakWeakMap with the given initial capacity and
default load factor.pInitialCapacity - the initial capacityWeakHashMap.WeakHashMap(int)public WeakWeakMap(int pInitialCapacity,
float pLoadFactor)
WeakWeakMap with the given initial capacity and
load factor.pInitialCapacity - the initial capacitypLoadFactor - the load factorWeakHashMap.WeakHashMap(int, float)public WeakWeakMap(Map<? extends K,? extends V> pMap)
WeakWeakMap containing the mappings in the given map.pMap - the map whose mappings are to be placed in this map.WeakHashMap.WeakHashMap(java.util.Map)public boolean containsValue(Object pValue)
containsValue in interface Map<K,V>containsValue in class WeakHashMap<K,V>public Collection<V> values()
Copyright © 2022. All rights reserved.