Class TernaryTreeNode


  • public class TernaryTreeNode
    extends java.lang.Object
    The class creates a TST node.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) TernaryTreeNode eqKid
      a reference object to the node containing character next to this node's character as occurring in the inserted token.
      (package private) TernaryTreeNode hiKid
      a reference object to the node containing character higher than this node's character.
      (package private) TernaryTreeNode loKid
      a reference object to the node containing character smaller than this node's character.
      (package private) char splitchar
      the character stored by a node.
      (package private) java.lang.String token
      used by leaf nodes to store the complete tokens to be added to suggest list while auto-completing the prefix.
      (package private) java.lang.Object val  
    • Constructor Summary

      Constructors 
      Constructor Description
      TernaryTreeNode()
      Creates a new empty node
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long sizeInBytes()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • splitchar

        char splitchar
        the character stored by a node.
      • loKid

        TernaryTreeNode loKid
        a reference object to the node containing character smaller than this node's character.
      • eqKid

        TernaryTreeNode eqKid
        a reference object to the node containing character next to this node's character as occurring in the inserted token.
      • hiKid

        TernaryTreeNode hiKid
        a reference object to the node containing character higher than this node's character.
      • token

        java.lang.String token
        used by leaf nodes to store the complete tokens to be added to suggest list while auto-completing the prefix.
      • val

        java.lang.Object val
    • Constructor Detail

      • TernaryTreeNode

        public TernaryTreeNode()
        Creates a new empty node
    • Method Detail

      • sizeInBytes

        long sizeInBytes()