com.discoversites.util.collections.util.tree
Class TreeUtil

java.lang.Object
  extended by com.discoversites.util.collections.util.tree.TreeUtil

public class TreeUtil
extends Object

Various utility methods for working with Tree objects.

Author:
Mark

Constructor Summary
TreeUtil()
           
 
Method Summary
static void prettyPrint(Tree<? extends Object> tree)
          Print the tree to STDOUT
static void prettyPrint(Tree<? extends Object> tree, PrintStream ps)
          Print the tree to the specified PrintStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeUtil

public TreeUtil()
Method Detail

prettyPrint

public static void prettyPrint(Tree<? extends Object> tree)
Print the tree to STDOUT

Parameters:
tree - The tree to print

prettyPrint

public static void prettyPrint(Tree<? extends Object> tree,
                               PrintStream ps)
Print the tree to the specified PrintStream

Parameters:
tree - The tree to print
ps - The PrintStream to print to