Modifier and Type | Method and Description |
---|---|
BTnode<E> |
BTnode.getLeft()
Accessor method to get a reference to the left child of this node.
|
BTnode<E> |
BTnode.getRight()
Accessor method to get a reference to the right child of this node.
|
Modifier and Type | Method and Description |
---|---|
void |
BTnode.setLeft(BTnode<E> newLeft)
Modification method to set the link to the left child of this node.
|
void |
BTnode.setRight(BTnode<E> newRight)
Modification method to set the link to the right child of this node.
|
void |
BTnode.Visitor.visit(BTnode<E> node) |
Constructor and Description |
---|
BTnode(E initialData,
BTnode<E> initialLeft)
Initialize a BTnode with a specified initial data and link to
left child.
|
BTnode(E initialData,
BTnode<E> initialLeft,
BTnode<E> initialRight)
Initialize a BTnode with a specified initial data and links
children.
|
BTnode(E initialData,
BTnode<E> initialLeft,
BTnode<E> initialRight)
Initialize a BTnode with a specified initial data and links
children.
|