T - the actual implementation type of this ImmutableBinaryTreeNodepublic class ImmutableBinaryTreeNode<T extends BinaryTreeNode<T>> extends ImmutableTreeNode<T> implements BinaryTreeNode<T>
BinaryTreeNode interface.| Constructor and Description |
|---|
ImmutableBinaryTreeNode(T left,
T right) |
| Modifier and Type | Method and Description |
|---|---|
T |
left()
Returns the left sub node.
|
T |
right()
Returns the right sub node.
|
getParentgetChildrenequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrenpublic T left()
BinaryTreeNodeleft in interface BinaryTreeNode<T extends BinaryTreeNode<T>>public T right()
BinaryTreeNoderight in interface BinaryTreeNode<T extends BinaryTreeNode<T>>