Class Tree

java.lang.Object
  |
  +--Tree

public class Tree
extends java.lang.Object

Absolutely minimal implementation of a tree data type, suitable only for creating an example tree. All data is unprotected.


Field Summary
(package private)  java.util.Vector children
           
(package private)  java.lang.String value
           
 
Constructor Summary
(package private) Tree(java.lang.String value)
          Constructor to create a node containing the given value.
 
Method Summary
(package private)  Tree add(java.lang.String value)
           
(package private)  Tree add(Tree tree)
          Adds the given tree as a child of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

java.util.Vector children

value

java.lang.String value
Constructor Detail

Tree

Tree(java.lang.String value)
Constructor to create a node containing the given value.

Method Detail

add

Tree add(java.lang.String value)

add

Tree add(Tree tree)
Adds the given tree as a child of this node.



Generated by BlueJ