Package org.drip.service.common
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 NodeTreeUtil.TreeNode
right()
Retrieve the Right Tree Nodedouble
value()
Retrieve the Tree Node ValueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TreeNode
TreeNode Constructor- Parameters:
value
- Node Valueleft
- Left Noderight
- Right Node
-
-
Method Details
-
value
public double value()Retrieve the Tree Node Value- Returns:
- The Tree Node Value
-
left
Retrieve the Left Tree Node- Returns:
- The Left Tree Node
-
right
Retrieve the Right Tree Node- Returns:
- The Right Tree Node
-