Class TreeUtil.TreeNode

java.lang.Object
org.drip.service.common.TreeUtil.TreeNode
Enclosing class:
TreeUtil

public class TreeUtil.TreeNode
extends java.lang.Object
TreeNode implements Linked Tree Node.
  • Constructor Summary

    Constructors
    Constructor Description
    TreeNode​(double value, TreeUtil.TreeNode left, TreeUtil.TreeNode right)
    TreeNode Constructor
  • Method Summary

    Modifier and Type Method Description
    TreeUtil.TreeNode left()
    Retrieve the Left Tree Node
    TreeUtil.TreeNode right()
    Retrieve the Right Tree Node
    double value()
    Retrieve the Tree Node Value

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TreeNode

      public TreeNode​(double value, TreeUtil.TreeNode left, TreeUtil.TreeNode right)
      TreeNode Constructor
      Parameters:
      value - Node Value
      left - Left Node
      right - Right Node
  • Method Details

    • value

      public double value()
      Retrieve the Tree Node Value
      Returns:
      The Tree Node Value
    • left

      public TreeUtil.TreeNode left()
      Retrieve the Left Tree Node
      Returns:
      The Left Tree Node
    • right

      public TreeUtil.TreeNode right()
      Retrieve the Right Tree Node
      Returns:
      The Right Tree Node