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.
|
acquireChildren, getParent
getChildren
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren
private final T extends BinaryTreeNode<T> left
private final T extends BinaryTreeNode<T> right
public T left()
BinaryTreeNode
left
in interface BinaryTreeNode<T extends BinaryTreeNode<T>>
public T right()
BinaryTreeNode
right
in interface BinaryTreeNode<T extends BinaryTreeNode<T>>