Package com.mchange.v2.util
Class DoubleWeakHashMap
java.lang.Object
com.mchange.v2.util.DoubleWeakHashMap
- All Implemented Interfaces:
Map
This class is not Thread safe. Use in single threaded contexts, or contexts where single threaded-access can be guaranteed, or wrap with Collections.synchronizedMap().
This class does not accept null keys or values.
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleWeakHashMap(int initialCapacity) DoubleWeakHashMap(int initialCapacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object val) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
DoubleWeakHashMap
public DoubleWeakHashMap() -
DoubleWeakHashMap
public DoubleWeakHashMap(int initialCapacity) -
DoubleWeakHashMap
public DoubleWeakHashMap(int initialCapacity, float loadFactor) -
DoubleWeakHashMap
-
-
Method Details
-
cleanCleared
public void cleanCleared() -
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap
-
containsValue
- Specified by:
containsValuein interfaceMap
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-