org.foray.fotree
Class DescendantIterator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DescendantIterator
public DescendantIterator(FObj fobj)
- Constructor.
- Parameters:
fobj
- The FObj instance whose descendants are iterated.
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.