Package org.forester.phylogeny.iterators
Class ExternalForwardIterator
- java.lang.Object
-
- org.forester.phylogeny.iterators.ExternalForwardIterator
-
- All Implemented Interfaces:
java.util.Iterator<PhylogenyNode>,PhylogenyNodeIterator
public class ExternalForwardIterator extends java.lang.Object implements PhylogenyNodeIterator
-
-
Constructor Summary
Constructors Constructor Description ExternalForwardIterator(Phylogeny phylogeny)Constructor for ExternalForwardIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()PhylogenyNodenext()voidremove()Not supported.voidreset()DOCUMENT ME!
-
-
-
Constructor Detail
-
ExternalForwardIterator
public ExternalForwardIterator(Phylogeny phylogeny) throws java.lang.IllegalArgumentException
Constructor for ExternalForwardIterator.- Parameters:
tree- the tree on which to iterate over all external nodes.- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<PhylogenyNode>- Specified by:
hasNextin interfacePhylogenyNodeIterator
-
next
public PhylogenyNode next() throws java.util.NoSuchElementException
- Specified by:
nextin interfacejava.util.Iterator<PhylogenyNode>- Specified by:
nextin interfacePhylogenyNodeIterator- Throws:
java.util.NoSuchElementException
-
remove
public void remove()
Not supported.- Specified by:
removein interfacejava.util.Iterator<PhylogenyNode>
-
reset
public void reset()
DOCUMENT ME!- Specified by:
resetin interfacePhylogenyNodeIterator
-
-