|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldman.collection.ordered.digitized.Trie.SearchData
protected class Trie.SearchData
Constructor Summary | |
---|---|
protected |
Trie.SearchData()
|
Method Summary | |
---|---|
boolean |
atLeaf()
|
boolean |
atRoot()
|
protected int |
childIndex(E element)
|
protected int |
extendPath(E element,
TrieNode<E> newChild)
|
protected int |
moveDown(E element)
Moves this SearchData instance down one level in the tree |
protected int |
moveDown(int childIndex)
|
void |
moveToMaxDescendant()
Moves this search data object to the descendant of its current location that is last in the iteration order among its descendants. |
protected int |
moveUp()
Moves up one level in the tree |
int |
numMatches()
|
protected boolean |
processedEndOfString(E element)
|
void |
retraceToLastLeftFork(E x)
Moves the search data position to the left fork root for x |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Trie.SearchData()
Method Detail |
---|
public boolean atLeaf()
public boolean atRoot()
public int numMatches()
protected int childIndex(E element)
element
- an element to be considered on this search path
protected int moveDown(int childIndex)
childIndex
- the index
of the child to which to move
NO_CHILD
if the specified child does not exist.protected int moveDown(E element)
element
- the
target
NO_CHILD
if the SearchData instance did not move because a null\
child was encountered.protected int extendPath(E element, TrieNode<E> newChild)
element
- the element that defines the search path on which the
child node should be placednewChild
- the child node to be addedprotected int moveUp()
protected boolean processedEndOfString(E element)
element
- the
target
public void retraceToLastLeftFork(E x)
x
- the target
find(x)
public void moveToMaxDescendant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |