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