Package jltk.struc
Class BinaryTree<ContentType>
- java.lang.Object
-
- jltk.struc.BinaryTree<ContentType>
-
public class BinaryTree<ContentType> extends Object
Beschreiben Sie hier die Klasse BinaryTree.- Version:
- 1.0
- Author:
- Schulte
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ContentType
content
(package private) BinaryTree<ContentType>
leftTree
(package private) BinaryTree<ContentType>
rightTree
-
Constructor Summary
Constructors Constructor Description BinaryTree()
BinaryTree(ContentType pContent, BinaryTree<ContentType> pLeftTree, BinaryTree<ContentType> pRightTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType
getContent()
BinaryTree<ContentType>
getLeftTree()
BinaryTree<ContentType>
getRightTree()
boolean
isEmpty()
void
setContent(ContentType pContent)
void
setLeftTree(BinaryTree<ContentType> pLeftTree)
void
setRightTree(BinaryTree<ContentType> pRightTree)
-
-
-
Field Detail
-
leftTree
BinaryTree<ContentType> leftTree
-
rightTree
BinaryTree<ContentType> rightTree
-
content
ContentType content
-
-
Constructor Detail
-
BinaryTree
public BinaryTree()
-
BinaryTree
public BinaryTree(ContentType pContent, BinaryTree<ContentType> pLeftTree, BinaryTree<ContentType> pRightTree)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
setContent
public void setContent(ContentType pContent)
-
getContent
public ContentType getContent()
-
getLeftTree
public BinaryTree<ContentType> getLeftTree()
-
getRightTree
public BinaryTree<ContentType> getRightTree()
-
setLeftTree
public void setLeftTree(BinaryTree<ContentType> pLeftTree)
-
setRightTree
public void setRightTree(BinaryTree<ContentType> pRightTree)
-
-