E - public static class BinarySearchTree.Node<E> extends Object
| Constructor and Description |
|---|
BinarySearchTree.Node(E data)
Create a node with the given data element.
|
| Modifier and Type | Method and Description |
|---|---|
E |
data()
Get the data stored in the node; for testing purposes only.
|
BinarySearchTree.Node<E> |
left()
Get the left child node; for testing purposes only.
|
BinarySearchTree.Node<E> |
right()
Get the right child node; for testing purposes only.
|
public BinarySearchTree.Node(E data)
data - the element to storepublic BinarySearchTree.Node<E> left()
public BinarySearchTree.Node<E> right()
public E data()