public class DeficitTargetIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.Integer>
Constructor and Description |
---|
DeficitTargetIterator(TreeIterator treeIt,
java.util.List<java.lang.Integer> deficitTrees,
int cTar,
int firstTar)
Instantiates a new TreeIterator from the root of a subtree
|
Modifier and Type | Method and Description |
---|---|
int |
defTreeCount() |
boolean |
hasNext() |
java.lang.Integer |
next() |
void |
nextIt()
Resets the iterator for the next iteration.
|
void |
remove() |
void |
resetToStart()
Resets the iterator for next pass on the same targets
|
public DeficitTargetIterator(TreeIterator treeIt, java.util.List<java.lang.Integer> deficitTrees, int cTar, int firstTar)
root
- the root vertex of the subtree.public void nextIt()
public void resetToStart()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Integer>
public java.lang.Integer next()
next
in interface java.util.Iterator<java.lang.Integer>
public void remove()
remove
in interface java.util.Iterator<java.lang.Integer>
public int defTreeCount()