org.foray.fotree
Class DescendantIterator

java.lang.Object
  extended by org.foray.fotree.DescendantIterator
All Implemented Interfaces:
Iterator<FObj>

public class DescendantIterator
extends Object
implements Iterator<FObj>

Iterates over the descendants of an FObj instance, returning them in pre-traversal order.


Constructor Summary
DescendantIterator(FObj fobj)
          Constructor.
 
Method Summary
 boolean hasNext()
           
 FObj next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescendantIterator

public DescendantIterator(FObj fobj)
Constructor.

Parameters:
fobj - The FObj instance whose descendants are iterated.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<FObj>

next

public FObj next()
Specified by:
next in interface Iterator<FObj>

remove

public void remove()
Specified by:
remove in interface Iterator<FObj>


Copyright © 2017. All rights reserved.