Map<K,V>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 extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>| Constructor | 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 | 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() |
clone, equals, hashCode, toStringcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replacefinalize, getClass, notify, notifyAll, wait, wait, waitclear, containsKey, forEach, isEmpty, keySet, replaceAll, sizepublic WeakWeakMap()
WeakWeakMap with default initial capacity and load
factor.WeakHashMap()public WeakWeakMap(int pInitialCapacity)
WeakWeakMap with the given initial capacity and
default load factor.pInitialCapacity - the initial capacityWeakHashMap(int)public WeakWeakMap(int pInitialCapacity,
float pLoadFactor)
WeakWeakMap with the given initial capacity and
load factor.pInitialCapacity - the initial capacitypLoadFactor - the load factorWeakHashMap(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(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 © 2018. All rights reserved.