Package ubic.basecode.dataStructure.tree
Class BinaryTreeNode<T>
java.lang.Object
ubic.basecode.dataStructure.Visitable
ubic.basecode.dataStructure.tree.BinaryTreeNode<T>
- Author:
- pavlidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLeft()getRight()insertLeft(T c) insertRight(T c) booleanisLeaf()booleanisRoot()voidsetContents(T contents) voidsetLeft(BinaryTreeNode<T> left) voidsetRight(BinaryTreeNode<T> right)
-
Constructor Details
-
BinaryTreeNode
public BinaryTreeNode() -
BinaryTreeNode
-
BinaryTreeNode
- Parameters:
contents-left-right-
-
-
Method Details
-
getContents
- Returns:
-
getLeft
- Returns:
-
getRight
- Returns:
-
insertLeft
-
insertRight
-
isLeaf
public boolean isLeaf()- Returns:
-
isRoot
public boolean isRoot()- Returns:
-
setContents
- Parameters:
contents-
-
setLeft
- Parameters:
left-
-
setRight
- Parameters:
right-
-