Class ImmutableBinaryTreeNode<T extends BinaryTreeNode<T>>
java.lang.Object
org.parboiled.trees.ImmutableGraphNode<T>
org.parboiled.trees.ImmutableTreeNode<T>
org.parboiled.trees.ImmutableBinaryTreeNode<T>
- Type Parameters:
T- the actual implementation type of this ImmutableBinaryTreeNode
- All Implemented Interfaces:
BinaryTreeNode<T>, GraphNode<T>, TreeNode<T>
public class ImmutableBinaryTreeNode<T extends BinaryTreeNode<T>>
extends ImmutableTreeNode<T>
implements BinaryTreeNode<T>
A simple immutable implementation of the
BinaryTreeNode interface.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ImmutableTreeNode
acquireChildren, getParentMethods inherited from class ImmutableGraphNode
getChildrenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GraphNode
getChildren
-
Constructor Details
-
ImmutableBinaryTreeNode
-
-
Method Details
-
left
Description copied from interface:BinaryTreeNodeReturns the left sub node.- Specified by:
leftin interfaceBinaryTreeNode<T extends BinaryTreeNode<T>>- Returns:
- the left sub node
-
right
Description copied from interface:BinaryTreeNodeReturns the right sub node.- Specified by:
rightin interfaceBinaryTreeNode<T extends BinaryTreeNode<T>>- Returns:
- the right sub node
-