Package org.forester.phylogeny.iterators
Class PostorderTreeIterator
java.lang.Object
org.forester.phylogeny.iterators.PostorderTreeIterator
- All Implemented Interfaces:
Iterator<PhylogenyNode>
,PhylogenyNodeIterator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
hasNext()
final PhylogenyNode
next()
Advances the Iterator by one.final void
remove()
final void
reset()
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
-
PostorderTreeIterator
- Parameters:
t
- Phylogeny for which a Iterator is to be constructed.- Throws:
IllegalArgumentException
-
-
Method Details
-
hasNext
public final boolean hasNext()- Specified by:
hasNext
in interfaceIterator<PhylogenyNode>
- Specified by:
hasNext
in interfacePhylogenyNodeIterator
-
next
Advances the Iterator by one.- Specified by:
next
in interfaceIterator<PhylogenyNode>
- Specified by:
next
in interfacePhylogenyNodeIterator
- Throws:
NoSuchElementException
-
remove
public final void remove()- Specified by:
remove
in interfaceIterator<PhylogenyNode>
-
reset
public final void reset()- Specified by:
reset
in interfacePhylogenyNodeIterator
-