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
Modifier and TypeClassDescriptionprotected static class
A 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
-
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, 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
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
Methods inherited from interface java.util.NavigableMap
reversed
Methods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
AbstractWeakValueNavigableMap
public AbstractWeakValueNavigableMap()
-
-
Method Details
-
getRefMap
Description copied from class:AbstractWeakValueMap
Returns the backing map- Specified by:
getRefMap
in classAbstractWeakValueMap<K,
V> - Returns:
- the map
-
comparator
- Specified by:
comparator
in 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:
lowerEntry
in interfaceNavigableMap<K,
V>
-
lowerKey
- Specified by:
lowerKey
in interfaceNavigableMap<K,
V>
-
floorEntry
- Specified by:
floorEntry
in interfaceNavigableMap<K,
V>
-
floorKey
- Specified by:
floorKey
in interfaceNavigableMap<K,
V>
-
ceilingEntry
- Specified by:
ceilingEntry
in interfaceNavigableMap<K,
V>
-
ceilingKey
- Specified by:
ceilingKey
in interfaceNavigableMap<K,
V>
-
higherEntry
- Specified by:
higherEntry
in interfaceNavigableMap<K,
V>
-
higherKey
- Specified by:
higherKey
in interfaceNavigableMap<K,
V>
-
firstEntry
- Specified by:
firstEntry
in interfaceNavigableMap<K,
V> - Specified by:
firstEntry
in interfaceSequencedMap<K,
V>
-
lastEntry
- Specified by:
lastEntry
in interfaceNavigableMap<K,
V> - Specified by:
lastEntry
in interfaceSequencedMap<K,
V>
-
pollFirstEntry
- Specified by:
pollFirstEntry
in interfaceNavigableMap<K,
V> - Specified by:
pollFirstEntry
in interfaceSequencedMap<K,
V>
-
pollLastEntry
- Specified by:
pollLastEntry
in interfaceNavigableMap<K,
V> - Specified by:
pollLastEntry
in interfaceSequencedMap<K,
V>
-
descendingMap
- Specified by:
descendingMap
in interfaceNavigableMap<K,
V>
-
descendingKeySet
- Specified by:
descendingKeySet
in interfaceNavigableMap<K,
V>
-
subMap
- Specified by:
subMap
in interfaceNavigableMap<K,
V>
-
headMap
- Specified by:
headMap
in interfaceNavigableMap<K,
V>
-
tailMap
- Specified by:
tailMap
in interfaceNavigableMap<K,
V>
-
subMap
-
headMap
-
tailMap
-