Package | Description |
---|---|
net.datastructures |
Modifier and Type | Class and Description |
---|---|
class |
BTNode<E>
Class implementing a node of a binary tree by storing references to
an element, a parent node, a left node, and a right node.
|
Modifier and Type | Method and Description |
---|---|
BTPosition<E> |
BTNode.getLeft()
Returns the left child of this position
|
BTPosition<E> |
BTPosition.getLeft() |
BTPosition<E> |
BTNode.getParent()
Returns the parent of this position
|
BTPosition<E> |
BTPosition.getParent() |
BTPosition<E> |
BTNode.getRight()
Returns the right child of this position
|
BTPosition<E> |
BTPosition.getRight() |
Modifier and Type | Method and Description |
---|---|
void |
BTNode.setLeft(BTPosition<E> v)
Sets the left child of this position
|
void |
BTPosition.setLeft(BTPosition<E> v) |
void |
BTNode.setParent(BTPosition<E> v)
Sets the parent of this position
|
void |
BTPosition.setParent(BTPosition<E> v) |
void |
BTNode.setRight(BTPosition<E> v)
Sets the right child of this position
|
void |
BTPosition.setRight(BTPosition<E> v) |
Constructor and Description |
---|
BTNode(E element,
BTPosition<E> parent,
BTPosition<E> left,
BTPosition<E> right)
Main constructor
|
BTNode(E element,
BTPosition<E> parent,
BTPosition<E> left,
BTPosition<E> right)
Main constructor
|
BTNode(E element,
BTPosition<E> parent,
BTPosition<E> left,
BTPosition<E> right)
Main constructor
|