Package ghidra.util.datastruct
Class WeakValueTreeMap<K,V>
java.lang.Object
ghidra.util.datastruct.AbstractWeakValueMap<K,V>
ghidra.util.datastruct.AbstractWeakValueNavigableMap<K,V>
ghidra.util.datastruct.WeakValueTreeMap<K,V>
- All Implemented Interfaces:
Map<K,,V> NavigableMap<K,,V> SequencedMap<K,,V> SortedMap<K,V>
Class to provide a tree map with weak values.
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.util.datastruct.AbstractWeakValueNavigableMap
AbstractWeakValueNavigableMap.NavigableView<K,V> Nested classes/interfaces inherited from class ghidra.util.datastruct.AbstractWeakValueMap
AbstractWeakValueMap.GeneratedEntry, AbstractWeakValueMap.WeakValueRef<K,V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NavigableMap<K, AbstractWeakValueMap.WeakValueRef<K, V>> Fields inherited from class ghidra.util.datastruct.AbstractWeakValueMap
refQueue -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new weak mapWeakValueTreeMap(Comparator<K> comparator) Constructs a new weak map with keys ordered according to the given comparator -
Method Summary
Modifier and TypeMethodDescriptionprotected NavigableMap<K, AbstractWeakValueMap.WeakValueRef<K, V>> Returns the backing mapMethods inherited from class ghidra.util.datastruct.AbstractWeakValueNavigableMap
ceilingEntry, ceilingKey, comparator, descendingKeySet, descendingMap, firstEntry, firstKey, floorEntry, floorKey, generateEntry, headMap, headMap, higherEntry, higherKey, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, subMap, subMap, tailMap, tailMapMethods inherited from class ghidra.util.datastruct.AbstractWeakValueMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, processQueue, put, putAll, remove, size, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface java.util.NavigableMap
reversedMethods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
refMap
-
-
Constructor Details
-
WeakValueTreeMap
public WeakValueTreeMap()Constructs a new weak map -
WeakValueTreeMap
Constructs a new weak map with keys ordered according to the given comparator- Parameters:
comparator- the comparator, ornullfor the natural ordering
-
-
Method Details
-
getRefMap
Description copied from class:AbstractWeakValueMapReturns the backing map- Specified by:
getRefMapin classAbstractWeakValueNavigableMap<K,V> - Returns:
- the map
-