|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TrieNode<E>
The TrieNode
interface must be supported by any
class defining objects to be used as nodes in a trie.
Method Summary | |
---|---|
TrieNode<E> |
child(int i)
Returns a reference to the ith child. |
E |
data()
Returns the data (if any) associated with this trie node. |
boolean |
isLeaf()
Returns true if and only if this trie node is a leaf. |
TrieNode<E> |
parent()
Returns a reference to the parent (or null for the root). |
void |
setParent(TrieNode<E> parent)
Sets the parent reference to be the given trie node. |
Method Detail |
---|
TrieNode<E> child(int i)
E data()
boolean isLeaf()
TrieNode<E> parent()
void setParent(TrieNode<E> parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |