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
ConstructorDescriptionDoubleWeakHashMap
(int initialCapacity) DoubleWeakHashMap
(int initialCapacity, float loadFactor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object val) entrySet()
boolean
isEmpty()
keySet()
void
int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
containsKey
in interfaceMap
-
containsValue
- Specified by:
containsValue
in interfaceMap
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-