Class ImmutableBinaryTreeNode<T extends BinaryTreeNode<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 Details

    • ImmutableBinaryTreeNode

      public ImmutableBinaryTreeNode(T left, T right)
  • Method Details