Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## baseCode.dataStructure.tree
Class BinaryTree

    java.lang.Object
      baseCode.dataStructure.tree.BinaryTree

public class BinaryTree
extends java.lang.Object

Copyright (c) 2004 Columbia University

Version:
  $Id: BinaryTree.java,v 1.1 2004/07/29 08:38:49 pavlidis Exp $
Author:
  Paul Pavlidis

Constructor Summary
`BinaryTree()`
`BinaryTree(BinaryTreeNode root)`

Method Summary
`BinaryTreeNode` | `getLeft()`
`BinaryTreeNode` | `getRight()`
`BinaryTreeNode` | `getRoot()`
`void` | `insertLeft(BinaryTreeNode p, java.lang.Object o)`
`void` | `insertRight(BinaryTreeNode p, java.lang.Object o)`
`boolean` | `isEmpty()`
`void` | `setRoot(BinaryTreeNode root)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BinaryTree

    public BinaryTree(BinaryTreeNode root)

### BinaryTree

    public BinaryTree()

Method Detail

### getRoot

    public BinaryTreeNode getRoot()

  Returns:
    Returns the root.

### setRoot

    public void setRoot(BinaryTreeNode root)

  Parameters:
    `root` - The root to set.

### insertLeft

    public void insertLeft(BinaryTreeNode p,
                           java.lang.Object o)

### insertRight

    public void insertRight(BinaryTreeNode p,
                            java.lang.Object o)

### getLeft

    public BinaryTreeNode getLeft()

### getRight

    public BinaryTreeNode getRight()

### isEmpty

    public boolean isEmpty()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2005 Columbia University. All Rights Reserved.