All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class optionCalc.BSTNode

java.lang.Object
   |
   +----optionCalc.Node
           |
           +----optionCalc.BSTNode

public class BSTNode
extends Node

Variable Index

 o left
A reference to the left subtree
 o right
A reference to the right subtree

Constructor Index

 o BSTNode(KeyInterface)
Do your initialization here.

Method Index

 o 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).

Variables

 o left
 public BSTNode left
A reference to the left subtree

 o right
 public BSTNode right
A reference to the right subtree

Constructors

 o BSTNode
 public BSTNode(KeyInterface k)
Do your initialization here.

Methods

 o 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