Class TernaryNode


  • public class TernaryNode
    extends Object
    Implementation of a node contained in a ternary tree.
    Author:
    Middleware Services
    • Constructor Detail

      • TernaryNode

        public TernaryNode​(char c)
        Create a new ternary node with the supplied character.
        Parameters:
        c - 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