Package ghidra.util.datastruct
Class AbstractWeakValueNavigableMap<K,V>
java.lang.Object
ghidra.util.datastruct.AbstractWeakValueMap<K,V>
ghidra.util.datastruct.AbstractWeakValueNavigableMap<K,V>
- Type Parameters:
K- the type of keysV- the type of values
- All Implemented Interfaces:
Map<K,,V> NavigableMap<K,,V> SequencedMap<K,,V> SortedMap<K,V>
- Direct Known Subclasses:
AbstractWeakValueNavigableMap.NavigableView,WeakValueTreeMap
public abstract class AbstractWeakValueNavigableMap<K,V>
extends AbstractWeakValueMap<K,V>
implements NavigableMap<K,V>
Class to provide a navigable, e.g., tree-, map with weak values
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA view of this same map that limits or changes the order of the keysNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionceilingEntry(K key) ceilingKey(K key) Comparator<? super K> firstKey()floorEntry(K key) protected AbstractWeakValueMap<K,V>.GeneratedEntry Construct a generated (wrapper) entry, for the entry-retrieval methods.protected abstract NavigableMap<K, AbstractWeakValueMap.WeakValueRef<K, V>> Returns the backing maphigherEntry(K key) lastKey()lowerEntry(K key) Methods 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
-
Constructor Details
-
AbstractWeakValueNavigableMap
public AbstractWeakValueNavigableMap()
-
-
Method Details
-
getRefMap
Description copied from class:AbstractWeakValueMapReturns the backing map- Specified by:
getRefMapin classAbstractWeakValueMap<K,V> - Returns:
- the map
-
comparator
- Specified by:
comparatorin interfaceSortedMap<K,V>
-
firstKey
-
lastKey
-
generateEntry
protected AbstractWeakValueMap<K,V>.GeneratedEntry generateEntry(Map.Entry<K, AbstractWeakValueMap.WeakValueRef<K, V>> ent) Construct a generated (wrapper) entry, for the entry-retrieval methods.This handles the null case in one place.
- Parameters:
ent- the entry to wrap, possibly null- Returns:
- the generated entry, or null
-
lowerEntry
- Specified by:
lowerEntryin interfaceNavigableMap<K,V>
-
lowerKey
- Specified by:
lowerKeyin interfaceNavigableMap<K,V>
-
floorEntry
- Specified by:
floorEntryin interfaceNavigableMap<K,V>
-
floorKey
- Specified by:
floorKeyin interfaceNavigableMap<K,V>
-
ceilingEntry
- Specified by:
ceilingEntryin interfaceNavigableMap<K,V>
-
ceilingKey
- Specified by:
ceilingKeyin interfaceNavigableMap<K,V>
-
higherEntry
- Specified by:
higherEntryin interfaceNavigableMap<K,V>
-
higherKey
- Specified by:
higherKeyin interfaceNavigableMap<K,V>
-
firstEntry
- Specified by:
firstEntryin interfaceNavigableMap<K,V> - Specified by:
firstEntryin interfaceSequencedMap<K,V>
-
lastEntry
- Specified by:
lastEntryin interfaceNavigableMap<K,V> - Specified by:
lastEntryin interfaceSequencedMap<K,V>
-
pollFirstEntry
- Specified by:
pollFirstEntryin interfaceNavigableMap<K,V> - Specified by:
pollFirstEntryin interfaceSequencedMap<K,V>
-
pollLastEntry
- Specified by:
pollLastEntryin interfaceNavigableMap<K,V> - Specified by:
pollLastEntryin interfaceSequencedMap<K,V>
-
descendingMap
- Specified by:
descendingMapin interfaceNavigableMap<K,V>
-
descendingKeySet
- Specified by:
descendingKeySetin interfaceNavigableMap<K,V>
-
subMap
- Specified by:
subMapin interfaceNavigableMap<K,V>
-
headMap
- Specified by:
headMapin interfaceNavigableMap<K,V>
-
tailMap
- Specified by:
tailMapin interfaceNavigableMap<K,V>
-
subMap
-
headMap
-
tailMap
-