|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.jtm.dic.AbstractTrieNode
edu.iastate.jtm.dic.LetterTrieNode
public class LetterTrieNode
A trie supporting letters (upper and lower case).
| Field Summary |
|---|
| Fields inherited from class edu.iastate.jtm.dic.AbstractTrieNode |
|---|
children, parent |
| Constructor Summary | |
|---|---|
LetterTrieNode()
|
|
| Method Summary | |
|---|---|
TrieNode[] |
createChildren()
Allocate memory for a node's child node array. |
protected TrieNode |
createNodeInstance()
Create a new child node at the specified array index. |
int |
getDegree()
Return the degree of this trie (size of the trie's alphabet). |
int |
getIndex(char c)
Return the index of a character in this node's child array. |
| Methods inherited from class edu.iastate.jtm.dic.AbstractTrieNode |
|---|
compareKey, createChild, getChildren, getIndex, getIndex, getKey, getKeyString, getParent, getValue, isCaseSensitive, printIndexMapping, removeChild, removeChildren, setKey, setParent, setValue, supportedCharacters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LetterTrieNode()
| Method Detail |
|---|
protected TrieNode createNodeInstance()
createNodeInstance in class AbstractTrieNodeid - the position in the array for the child node.
public TrieNode[] createChildren()
createChildren in interface TrieNodecreateChildren in class AbstractTrieNodepublic int getDegree()
getDegree in interface TrieNodegetDegree in class AbstractTrieNodepublic int getIndex(char c)
getIndex in interface TrieNodegetIndex in class AbstractTrieNodec - the character of interest.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||