Package ghidra.util.datastruct
Class WeakValueHashMap<K,V>
- java.lang.Object
-
- ghidra.util.datastruct.WeakValueHashMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class WeakValueHashMap<K,V> extends java.lang.Object implements java.util.Map<K,V>
Class to provide a hash map with weak values.
-
-
Constructor Summary
Constructors Constructor Description WeakValueHashMap()
Constructs a new weak mapWeakValueHashMap(int initialSize)
Constructs a new weak map with the given initial size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> map)
V
remove(java.lang.Object key)
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
values
public java.util.Collection<V> values()
-
-