com.discoversites.util.collections.util.tree
Class TreeUtil
java.lang.Object
com.discoversites.util.collections.util.tree.TreeUtil
public class TreeUtil
- extends Object
Various utility methods for working with Tree
objects.
- Author:
- Mark
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeUtil
public TreeUtil()
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 printps
- The PrintStream
to print to