[all packages] 
[package pizza.contrib] 
[class hierarchy] 
[index] 
public class pizza.contrib.MultiTree<A>
(source file: pizza/contrib/MultiTree.pizza)
java.lang.Object
   |
   +----pizza.contrib.MultiTree<A>
The pure class interface.
public class MultiTree<A>
  -  
 Tree with multiple childs. Each branch stores a value and can 
 have several subbranches.
 
  
    -  See also:
 
      -  MultiTree, SortedVector
 
  
 

  
  MultiTree(A)
    - 
 Creates a root with a content.
  
 
  MultiTree()
    - 
 Creates an empty root.
 

  
  childAt(int)
    - 
 Returns the subbranch at position 
i.
   
  children()
    - 
 Returns the number of subbranches.
  
 
  getContent()
    - 
 Returns the content of a branch.
  
 
  insert(A)
    - 
 Inserts a new branch with a content to this branch and
 returns the new branch object.
  
 
  print(PrintStream, String)
    - 
 Prints the tree to the stream 
p and
 indents the elements of subbranches with 
   
  setContent(A)
    - 
 Sets a new content for this branch.
 

 MultiTree
public MultiTree();
  -  
 Creates an empty root.
 
  
  
 
 MultiTree
public MultiTree(A content);
  -  
 Creates a root with a content.
 
  
  
 

 insert
public MultiTree<A> insert(A content);
  -  
 Inserts a new branch with a content to this branch and
 returns the new branch object.
 
  
    -  Returns:
 
      - the new branch
 
  
 
 setContent
public void setContent(A content);
  -  
 Sets a new content for this branch.
 
  
  
 
 children
public int children();
  -  
 Returns the number of subbranches.
 
  
  
 
 childAt
public MultiTree<A> childAt(int i);
  -  
 Returns the subbranch at position 
i. 
  
  
 
 getContent
public A getContent();
  -  
 Returns the content of a branch.
 
  
  
 
 print
public void print(PrintStream p,
                  String header);
  -  
 Prints the tree to the stream 
p and
 indents the elements of subbranches with header 
  
  
 
[all packages] 
[package pizza.contrib] 
[class hierarchy] 
[index] 
pizza.contrib.MultiTree.html