Package ghidra.util.datastruct
Class WeakValueHashMap<K,V>
java.lang.Object
ghidra.util.datastruct.AbstractWeakValueMap<K,V>
ghidra.util.datastruct.WeakValueHashMap<K,V>
- All Implemented Interfaces:
Map<K,
V>
Class to provide a hash map with weak values.
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.util.datastruct.AbstractWeakValueMap
AbstractWeakValueMap.GeneratedEntry, AbstractWeakValueMap.WeakValueRef<K,
V> -
Field Summary
Fields inherited from class ghidra.util.datastruct.AbstractWeakValueMap
refQueue
-
Constructor Summary
ConstructorDescriptionConstructs a new weak mapWeakValueHashMap
(int initialSize) Constructs a new weak map with the given initial size -
Method Summary
Methods inherited from class ghidra.util.datastruct.AbstractWeakValueMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, processQueue, put, putAll, remove, 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
-
WeakValueHashMap
public WeakValueHashMap()Constructs a new weak map -
WeakValueHashMap
public WeakValueHashMap(int initialSize) Constructs a new weak map with the given initial size- Parameters:
initialSize
- the initial size of the backing map
-
-
Method Details
-
getRefMap
Description copied from class:AbstractWeakValueMap
Returns the backing map- Specified by:
getRefMap
in classAbstractWeakValueMap<K,
V> - Returns:
- the map
-