uk.ac.sanger.psu.gfmerge.util.algotools._old
Class Tree
java.lang.Object
|
+--uk.ac.sanger.psu.gfmerge.util.algotools._old.Tree
- Direct Known Subclasses:
- SearchTree
- public class Tree
- extends java.lang.Object
class tree with three constructors and four methods
a tree consits of data fields value, left, right
Constructor Summary |
Tree()
|
Tree(java.lang.Object x,
java.lang.Object f)
|
Tree(Tree l,
java.lang.Object x,
java.lang.Object f,
Tree r)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final Tree EMPTY
Tree
public Tree()
Tree
public Tree(java.lang.Object x,
java.lang.Object f)
Tree
public Tree(Tree l,
java.lang.Object x,
java.lang.Object f,
Tree r)
empty
public boolean empty()
left
public Tree left()
right
public Tree right()
value
public java.lang.Object value()
features
public java.util.ArrayList features()