private class DoubleIntegerMaxHeap.UnsortedIter extends Object implements DoubleIntegerHeap.UnsortedIter
for (DoubleIntegerHeap.UnsortedIter iter = heap.unsortedIter(); iter.valid(); iter.next()) {
doSomething(iter.get());
}
Modifier and Type | Field and Description |
---|---|
protected int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
private |
DoubleIntegerMaxHeap.UnsortedIter() |
public boolean valid()
Iter
public void advance()
Iter
public double getKey()
DoubleIntegerHeap.UnsortedIter
getKey
in interface DoubleIntegerHeap.UnsortedIter
public int getValue()
DoubleIntegerHeap.UnsortedIter
getValue
in interface DoubleIntegerHeap.UnsortedIter