All Packages Class Hierarchy This Package Previous Next Index
Class optionCalc.BSTNode
java.lang.Object
|
+----optionCalc.Node
|
+----optionCalc.BSTNode
- public class BSTNode
- extends Node
-
left
- A reference to the left subtree
-
right
- A reference to the right subtree
-
BSTNode(KeyInterface)
- Do your initialization here.
-
InsertElement(KeyInterface)
- Inserts the given key in the binary search
tree and adds it to the linked list (if it has
not already been inserted).
left
public BSTNode left
- A reference to the left subtree
right
public BSTNode right
- A reference to the right subtree
BSTNode
public BSTNode(KeyInterface k)
- Do your initialization here.
InsertElement
public Node InsertElement(KeyInterface k)
- Inserts the given key in the binary search
tree and adds it to the linked list (if it has
not already been inserted). Returns a reference
to the inserted/found node.
- Parameters:
- k - the (KeyInterface) data to insert
- Overrides:
- InsertElement in class Node
All Packages Class Hierarchy This Package Previous Next Index