Package org.passay.dictionary
Class TernaryNode
- java.lang.Object
-
- org.passay.dictionary.TernaryNode
-
public class TernaryNode extends Object
Implementation of a node contained in a ternary tree.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description TernaryNode(char c)
Create a new ternary node with the supplied character.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TernaryNode
getEqkid()
Returns the eqkid node in relation to this node.TernaryNode
getHikid()
Returns the hikid node in relation to this node.TernaryNode
getLokid()
Returns the lokid node in relation to this node.char
getSplitChar()
Returns the split character.boolean
isEndOfWord()
Returns whether this node is at the end of a word.void
setEndOfWord(boolean b)
Sets whether this node is at the end of a word.void
setEqkid(TernaryNode node)
Sets the eqkid node in relation to this node.void
setHikid(TernaryNode node)
Sets the hikid node in relation to this node.void
setLokid(TernaryNode node)
Sets the lokid node in relation to this node.void
setSplitChar(char c)
Sets the split character.
-
-
-
Method Detail
-
getSplitChar
public char getSplitChar()
Returns the split character.- Returns:
- character
-
setSplitChar
public void setSplitChar(char c)
Sets the split character.- Parameters:
c
- character
-
isEndOfWord
public boolean isEndOfWord()
Returns whether this node is at the end of a word.- Returns:
- whether this node is at the end of a word
-
setEndOfWord
public void setEndOfWord(boolean b)
Sets whether this node is at the end of a word.- Parameters:
b
- whether this node is at the end of a word
-
getLokid
public TernaryNode getLokid()
Returns the lokid node in relation to this node.- Returns:
- ternary node
-
setLokid
public void setLokid(TernaryNode node)
Sets the lokid node in relation to this node.- Parameters:
node
- ternary node
-
getEqkid
public TernaryNode getEqkid()
Returns the eqkid node in relation to this node.- Returns:
- ternary node
-
setEqkid
public void setEqkid(TernaryNode node)
Sets the eqkid node in relation to this node.- Parameters:
node
- ternary node
-
getHikid
public TernaryNode getHikid()
Returns the hikid node in relation to this node.- Returns:
- ternary node
-
setHikid
public void setHikid(TernaryNode node)
Sets the hikid node in relation to this node.- Parameters:
node
- ternary node
-
-