
private class DoubleIntegerDBIDPairList.Itr extends Object implements DoubleDBIDListIter, IntegerDBIDArrayIter
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
pos |
| Modifier | Constructor and Description |
|---|---|
private |
Itr() |
| Modifier and Type | Method and Description |
|---|---|
DoubleIntegerDBIDPairList.Itr |
advance()
Moves the iterator forward to the next entry.
|
DoubleIntegerDBIDPairList.Itr |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
double |
doubleValue()
Get the double value
|
int |
getOffset()
Get current iterator offset.
|
DoubleDBIDPair |
getPair()
Materialize an object pair.
|
int |
internalGetIndex()
Get the internal index.
|
DoubleIntegerDBIDPairList.Itr |
retract()
Moves the iterator backward to the previous entry.
|
DoubleIntegerDBIDPairList.Itr |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public boolean valid()
Iterpublic DoubleIntegerDBIDPairList.Itr advance()
Iteradvance in interface DBIDArrayIteradvance in interface DBIDIteradvance in interface DoubleDBIDListIteradvance in interface ArrayIteradvance in interface Iterpublic int getOffset()
ArrayIterpublic DoubleIntegerDBIDPairList.Itr advance(int count)
ArrayIteradvance in interface DBIDArrayIteradvance in interface DoubleDBIDListIteradvance in interface ArrayItercount - offset to move forward or backwardspublic DoubleIntegerDBIDPairList.Itr retract()
ArrayIterretract in interface DBIDArrayIterretract in interface DoubleDBIDListIterretract in interface ArrayIterpublic DoubleIntegerDBIDPairList.Itr seek(int off)
ArrayIterseek in interface DBIDArrayIterseek in interface DoubleDBIDListIterseek in interface ArrayIteroff - Seek offsetpublic int internalGetIndex()
DBIDRefinternalGetIndex in interface DBIDRefinternalGetIndex in interface IntegerDBIDRefpublic double doubleValue()
DoubleDBIDListIterdoubleValue in interface DoubleDBIDListIterpublic DoubleDBIDPair getPair()
DoubleDBIDListIter#doubleValue() and exploit that the iterator itself is a
DBIDRef reference.getPair in interface DoubleDBIDListIterCopyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.