public class NodeLocation<USERKEY,STOREKEY>
extends java.lang.Object
Node objects arranged as a tree with no
back links. This will do a depth-first traversal of the tree.| Constructor and Description |
|---|
NodeLocation(NodeStore<USERKEY,STOREKEY,?> nodeStore,
Node<USERKEY,STOREKEY> node,
int index) |
NodeLocation(NodeStore<USERKEY,STOREKEY,?> nodeStore,
NodeLocation<USERKEY,STOREKEY> prev,
Node<USERKEY,STOREKEY> node,
int index) |
| Modifier and Type | Method and Description |
|---|---|
NodeLocation<USERKEY,STOREKEY> |
afterMax()
This creates a NodeLocation that is positioned in an imaginary node
that exists after the last node in the tree.
|
NodeLocation<USERKEY,STOREKEY> |
beforeMin()
This creates a NodeLocation that is positioned in an imaginary node
that exists before the first node in the tree.
|
NodeLocation<USERKEY,STOREKEY> |
descend() |
NodeLocation<USERKEY,STOREKEY> |
descend(int child) |
Node<USERKEY,STOREKEY> |
getNode() |
boolean |
hasNext() |
boolean |
hasPrev() |
NodeLocation<USERKEY,STOREKEY> |
left()
Return this node with the index positioned on the left.
|
NodeLocation<USERKEY,STOREKEY> |
max() |
NodeLocation<USERKEY,STOREKEY> |
min() |
NodeLocation<USERKEY,STOREKEY> |
next() |
NodeLocation<USERKEY,STOREKEY> |
prev() |
NodeLocation<USERKEY,STOREKEY> |
right()
Return this node with the index positioned on the Right.
|
public NodeLocation(NodeStore<USERKEY,STOREKEY,?> nodeStore, Node<USERKEY,STOREKEY> node, int index)
public boolean hasPrev()
public boolean hasNext()
public NodeLocation<USERKEY,STOREKEY> descend()
public NodeLocation<USERKEY,STOREKEY> descend(int child)
public NodeLocation<USERKEY,STOREKEY> right()
public NodeLocation<USERKEY,STOREKEY> left()
public NodeLocation<USERKEY,STOREKEY> next()
public NodeLocation<USERKEY,STOREKEY> prev()
public NodeLocation<USERKEY,STOREKEY> beforeMin()
Iteratorspublic NodeLocation<USERKEY,STOREKEY> afterMax()
Iteratorspublic NodeLocation<USERKEY,STOREKEY> max()
public NodeLocation<USERKEY,STOREKEY> min()