com.infomancers.collections.iterators
Class TreeIterators

java.lang.Object
  extended by com.infomancers.collections.iterators.TreeIterators

public final class TreeIterators
extends java.lang.Object

Utility class used to create an iterator which iterates over all the nodes of a tree, either in prefix or postfix mode.


Nested Class Summary
static class TreeIterators.Type
           
 
Constructor Summary
TreeIterators()
           
 
Method Summary
static java.lang.Iterable<java.lang.Object> postfixIterator(TreeAdapter tree)
           
static java.lang.Iterable<java.lang.Object> prefixIterator(TreeAdapter tree)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeIterators

public TreeIterators()
Method Detail

postfixIterator

public static java.lang.Iterable<java.lang.Object> postfixIterator(TreeAdapter tree)

prefixIterator

public static java.lang.Iterable<java.lang.Object> prefixIterator(TreeAdapter tree)