Package ubic.basecode.dataStructure.tree
Class BinaryTree<T>
- java.lang.Object
-
- ubic.basecode.dataStructure.tree.BinaryTree<T>
-
public class BinaryTree<T> extends Object
- Author:
- Paul Pavlidis
-
-
Constructor Summary
Constructors Constructor Description BinaryTree(T root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryTreeNode<T>
getRoot()
BinaryTreeNode<T>
insertLeft(BinaryTreeNode<T> p, T o)
BinaryTreeNode<T>
insertRight(BinaryTreeNode<T> p, T o)
boolean
isEmpty()
-
-
-
Constructor Detail
-
BinaryTree
public BinaryTree(T root)
-
-
Method Detail
-
getRoot
public BinaryTreeNode<T> getRoot()
- Returns:
- Returns the root.
-
insertLeft
public BinaryTreeNode<T> insertLeft(BinaryTreeNode<T> p, T o)
-
insertRight
public BinaryTreeNode<T> insertRight(BinaryTreeNode<T> p, T o)
-
isEmpty
public boolean isEmpty()
-
-