Package org.forester.phylogeny.iterators
Class PreorderTreeIterator
java.lang.Object
org.forester.phylogeny.iterators.PreorderTreeIterator
- All Implemented Interfaces:
 Iterator<PhylogenyNode>,PhylogenyNodeIterator
- 
Constructor Summary
ConstructorsConstructorDescription - 
Method Summary
Modifier and TypeMethodDescriptionfinal booleanhasNext()final PhylogenyNodenext()Advances the Iterator by one.final voidremove()Not supported.final voidreset()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining 
- 
Constructor Details
- 
PreorderTreeIterator
- Parameters:
 tree- Phylogeny for which a Iterator is to be constructed.- Throws:
 IllegalArgumentException
 - 
PreorderTreeIterator
- Throws:
 IllegalArgumentException
 
 - 
 - 
Method Details
- 
hasNext
public final boolean hasNext()- Specified by:
 hasNextin interfaceIterator<PhylogenyNode>- Specified by:
 hasNextin interfacePhylogenyNodeIterator
 - 
next
Advances the Iterator by one.- Specified by:
 nextin interfaceIterator<PhylogenyNode>- Specified by:
 nextin interfacePhylogenyNodeIterator- Throws:
 NoSuchElementException
 - 
remove
public final void remove()Not supported.- Specified by:
 removein interfaceIterator<PhylogenyNode>
 - 
reset
public final void reset()- Specified by:
 resetin interfacePhylogenyNodeIterator
 
 -