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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryTree
public BinaryTree(BinaryTreeNode root)
BinaryTree
public BinaryTree()
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()
Copyright © 2003-2005 Columbia University. All Rights Reserved.