Package ghidra.generic.util.datastruct
Class DynamicValueSortedTreeMap.Node
- java.lang.Object
-
- ghidra.generic.util.datastruct.DynamicValueSortedTreeMap.Node
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Enclosing class:
- DynamicValueSortedTreeMap<K,V>
protected class DynamicValueSortedTreeMap.Node extends java.lang.Object implements java.util.Map.Entry<K,V>
An entry in the map. Nodes are elements of a binary tree and a doubly-linked list.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeIndex()
Compute this node's index.boolean
equals(java.lang.Object obj)
K
getKey()
V
getValue()
V
setValue(V value)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
-
computeIndex
public int computeIndex()
Compute this node's index. This uses thesizeLeft
field to compute the index in O(log n) on average.- Returns:
- the index
-
-