Interface MutableBinaryTreeNode<T extends MutableBinaryTreeNode<T>>

Type Parameters:
T - the actual implementation type of this MutableBinaryTreeNode
All Superinterfaces:
BinaryTreeNode<T>, GraphNode<T>, MutableTreeNode<T>, TreeNode<T>

public interface MutableBinaryTreeNode<T extends MutableBinaryTreeNode<T>> extends BinaryTreeNode<T>, MutableTreeNode<T>
A MutableTreeNode specialization also satisfying the BinaryTreeNode interface and providing mutability methods.
  • Method Details

    • setLeft

      void setLeft(T node)
      Sets the left child node to the given node.
      Parameters:
      node - the node to set as left child
    • setRight

      void setRight(T node)
      Sets the right child node to the given node.
      Parameters:
      node - the node to set as right child