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 boolean
hasNext()
PhylogenyNode
next()
void
remove()
Not supported.void
reset()
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:
hasNext
in interfacejava.util.Iterator<PhylogenyNode>
- Specified by:
hasNext
in interfacePhylogenyNodeIterator
-
next
public PhylogenyNode next() throws java.util.NoSuchElementException
- Specified by:
next
in interfacejava.util.Iterator<PhylogenyNode>
- Specified by:
next
in interfacePhylogenyNodeIterator
- Throws:
java.util.NoSuchElementException
-
remove
public void remove()
Not supported.- Specified by:
remove
in interfacejava.util.Iterator<PhylogenyNode>
-
reset
public void reset()
DOCUMENT ME!- Specified by:
reset
in interfacePhylogenyNodeIterator
-
-