public class TernaryTrieNode
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | endOfWordTrue if this character is the end of a word. | 
| protected TernaryTrieNode | eqkidEqual child of this node. | 
| protected TernaryTrieNode | hikidHigh child of this node. | 
| protected TernaryTrieNode | lokidLow child of this node. | 
| protected char | splitcharCharacter stored in this node. | 
| protected java.lang.Object | valueData value for this node. | 
| Constructor and Description | 
|---|
| TernaryTrieNode()Create a new empty node. | 
| TernaryTrieNode(char c)Create a new node with a specified split char. | 
| Modifier and Type | Method and Description | 
|---|---|
| TernaryTrieNode | getEqkid()
 This returns the eqkid of this  TernaryTrieNode. | 
| TernaryTrieNode | getHikid()
 This returns the hikid of this  TernaryTrieNode. | 
| TernaryTrieNode | getLokid()
 This returns the lokid of this  TernaryTrieNode. | 
| char | getSplitChar()Return the trie splitting character for this node. | 
| java.lang.Object | getValue()Get data value for node. | 
| boolean | isEndOfWord()
 This returns the endOfWord for this  TernaryTrieNode. | 
| void | setEndOfWord(boolean b)
 This sets the endOfWord for this  TernaryTrieNode. | 
| void | setEqkid(TernaryTrieNode node)
 This sets the eqkid of this  TernaryTrieNode. | 
| void | setHikid(TernaryTrieNode node)
 This sets the hikid of this  TernaryTrieNode. | 
| void | setLokid(TernaryTrieNode node)
 This sets the lokid of this  TernaryTrieNode. | 
| void | setSplitChar(char c)Set the trie splitting charaacter for this node. | 
| void | setValue(java.lang.Object value)Set data value for node. | 
protected char splitchar
protected boolean endOfWord
protected TernaryTrieNode lokid
protected TernaryTrieNode eqkid
protected TernaryTrieNode hikid
protected java.lang.Object value
public TernaryTrieNode()
public TernaryTrieNode(char c)
c - Character for this node.public char getSplitChar()
public void setSplitChar(char c)
c - The trie splitting character.public boolean isEndOfWord()
 This returns the endOfWord for this TernaryTrieNode.
 
booleanpublic void setEndOfWord(boolean b)
 This sets the endOfWord for this TernaryTrieNode.
 
b - booleanpublic TernaryTrieNode getLokid()
 This returns the lokid of this TernaryTrieNode.
 
TernaryTrieNodepublic void setLokid(TernaryTrieNode node)
 This sets the lokid of this TernaryTrieNode.
 
node - TernaryTrieNodepublic TernaryTrieNode getEqkid()
 This returns the eqkid of this TernaryTrieNode.
 
TernaryTrieNodepublic void setEqkid(TernaryTrieNode node)
 This sets the eqkid of this TernaryTrieNode.
 
node - TernaryTrieNodepublic TernaryTrieNode getHikid()
 This returns the hikid of this TernaryTrieNode.
 
TernaryTrieNodepublic void setHikid(TernaryTrieNode node)
 This sets the hikid of this TernaryTrieNode.
 
node - TernaryTrieNodepublic void setValue(java.lang.Object value)
value - The data value.public java.lang.Object getValue()