Package org.forester.phylogeny.iterators
Class ExternalForwardIterator
java.lang.Object
org.forester.phylogeny.iterators.ExternalForwardIterator
- All Implemented Interfaces:
Iterator<PhylogenyNode>,PhylogenyNodeIterator
-
Constructor Summary
ConstructorsConstructorDescriptionExternalForwardIterator(Phylogeny phylogeny) Constructor for ExternalForwardIterator. -
Method Summary
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
-
ExternalForwardIterator
Constructor for ExternalForwardIterator.- Parameters:
tree- the tree on which to iterate over all external nodes.- Throws:
IllegalArgumentException
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<PhylogenyNode>- Specified by:
hasNextin interfacePhylogenyNodeIterator
-
next
- Specified by:
nextin interfaceIterator<PhylogenyNode>- Specified by:
nextin interfacePhylogenyNodeIterator- Throws:
NoSuchElementException
-
remove
public void remove()Not supported.- Specified by:
removein interfaceIterator<PhylogenyNode>
-
reset
public void reset()DOCUMENT ME!- Specified by:
resetin interfacePhylogenyNodeIterator
-