Interface BinaryTreeNode<T extends BinaryTreeNode<T>>

Type Parameters:
T - the actual implementation type of this tree node
All Superinterfaces:
GraphNode<T>, TreeNode<T>
All Known Subinterfaces:
MutableBinaryTreeNode<T>
All Known Implementing Classes:
ImmutableBinaryTreeNode, MutableBinaryTreeNodeImpl

public interface BinaryTreeNode<T extends BinaryTreeNode<T>> extends TreeNode<T>
A TreeNode specialization with only two child nodes, left and right.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the left sub node.
    Returns the right sub node.

    Methods inherited from interface org.parboiled.trees.GraphNode

    getChildren

    Methods inherited from interface org.parboiled.trees.TreeNode

    getParent
  • Method Details

    • left

      T left()
      Returns the left sub node.
      Returns:
      the left sub node
    • right

      T right()
      Returns the right sub node.
      Returns:
      the right sub node