Package org.forester.phylogeny.iterators
Class ExternalForwardIterator
java.lang.Object
org.forester.phylogeny.iterators.ExternalForwardIterator
- All Implemented Interfaces:
Iterator<PhylogenyNode>
,PhylogenyNodeIterator
-
Constructor Summary
ConstructorDescriptionExternalForwardIterator
(Phylogeny phylogeny) Constructor for ExternalForwardIterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
hasNext
in interfaceIterator<PhylogenyNode>
- Specified by:
hasNext
in interfacePhylogenyNodeIterator
-
next
- Specified by:
next
in interfaceIterator<PhylogenyNode>
- Specified by:
next
in interfacePhylogenyNodeIterator
- Throws:
NoSuchElementException
-
remove
public void remove()Not supported.- Specified by:
remove
in interfaceIterator<PhylogenyNode>
-
reset
public void reset()DOCUMENT ME!- Specified by:
reset
in interfacePhylogenyNodeIterator
-