Class Node

    • Field Detail

      • leftChild

        public Node leftChild
      • rightChild

        public Node rightChild
    • Constructor Detail

      • Node

        public Node()
    • Method Detail

      • getChild

        public Node getChild​(boolean left)
      • createChild

        public Node createChild​(boolean left)
        Create and set a child of the current node
        Parameters:
        left - if true create the left child if false create the right child
        Returns:
        the created node
      • setChild

        public Node setChild​(boolean left,
                             Node newNode)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object