public final class PreorderTreeIterator extends Object implements PhylogenyNodeIterator
| Constructor and Description |
|---|
PreorderTreeIterator(Phylogeny tree) |
PreorderTreeIterator(PhylogenyNode node) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
PhylogenyNode |
next()
Advances the Iterator by one.
|
void |
remove()
Not supported.
|
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic PreorderTreeIterator(Phylogeny tree) throws IllegalArgumentException
tree - Phylogeny for which a Iterator is to be constructed.IllegalArgumentExceptionpublic PreorderTreeIterator(PhylogenyNode node) throws IllegalArgumentException
IllegalArgumentExceptionpublic final boolean hasNext()
hasNext in interface Iterator<PhylogenyNode>hasNext in interface PhylogenyNodeIteratorpublic final PhylogenyNode next() throws NoSuchElementException
next in interface Iterator<PhylogenyNode>next in interface PhylogenyNodeIteratorNoSuchElementExceptionpublic final void remove()
remove in interface Iterator<PhylogenyNode>public final void reset()
reset in interface PhylogenyNodeIteratorCopyright © 2016. All rights reserved.