T - the actual implementation type of this MutableBinaryTreeNodepublic interface MutableBinaryTreeNode<T extends MutableBinaryTreeNode<T>> extends BinaryTreeNode<T>, MutableTreeNode<T>
MutableTreeNode specialization also satisfying the BinaryTreeNode interface
and providing mutability methods.| Modifier and Type | Method and Description |
|---|---|
void |
setLeft(T node)
Sets the left child node to the given node.
|
void |
setRight(T node)
Sets the right child node to the given node.
|
left, rightaddChild, removeChild, setChildgetChildren