com.futureshocked.datastructures
Class BinaryTree2

java.lang.Object
  extended by com.futureshocked.datastructures.BinaryTree2

public class BinaryTree2
extends java.lang.Object

Just a test class for the all the dynamic bytecode manipulation classes


Field Summary
private  BinaryNode root
           
 
Constructor Summary
BinaryTree2()
           
BinaryTree2(BinaryNode root)
           
 
Method Summary
 BinaryNode getRoot()
           
 void insert(BinaryNode node)
           
private  BinaryNode insert(BinaryNode curNode, BinaryNode newNode)
           
 void insert(int value)
           
static void main(java.lang.String[] args)
           
 void printTree()
           
private  void printTree(BinaryNode node, int depth)
           
private  BinaryNode search(BinaryNode curNode, int number)
           
 BinaryNode search(int number)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

private BinaryNode root
Constructor Detail

BinaryTree2

public BinaryTree2()

BinaryTree2

public BinaryTree2(BinaryNode root)
Method Detail

getRoot

public BinaryNode getRoot()

insert

public void insert(int value)

insert

public void insert(BinaryNode node)

insert

private BinaryNode insert(BinaryNode curNode,
                          BinaryNode newNode)

search

public BinaryNode search(int number)

search

private BinaryNode search(BinaryNode curNode,
                          int number)

printTree

public void printTree()

printTree

private void printTree(BinaryNode node,
                       int depth)

main

public static void main(java.lang.String[] args)