private class DoubleDistanceIntegerDBIDList.Itr extends Object implements DoubleDistanceIntegerDBIDListIter
Modifier and Type | Field and Description |
---|---|
(package private) int |
offset
Current offset.
|
Modifier | Constructor and Description |
---|---|
private |
DoubleDistanceIntegerDBIDList.Itr()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
void |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
double |
doubleDistance()
Get the distance
|
DoubleDistance |
getDistance()
Deprecated.
|
DoubleDistanceDBIDPair |
getDistancePair()
Get an object pair.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Get the internal index.
|
void |
retract()
Moves the iterator backward to the previous entry.
|
void |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
private DoubleDistanceIntegerDBIDList.Itr()
public boolean valid()
Iter
public void advance()
Iter
public int getOffset()
ArrayIter
public void advance(int count)
ArrayIter
public void retract()
ArrayIter
public void seek(int off)
ArrayIter
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public double doubleDistance()
DoubleDistanceDBIDListIter
doubleDistance
in interface DoubleDistanceDBIDListIter
public DoubleDistanceDBIDPair getDistancePair()
DoubleDistanceDBIDListIter
getDistancePair
in interface DistanceDBIDListIter<DoubleDistance>
getDistancePair
in interface DoubleDistanceDBIDListIter
@Deprecated public DoubleDistance getDistance()
DoubleDistanceDBIDListIter
getDistance
in interface DistanceDBIDListIter<DoubleDistance>
getDistance
in interface DoubleDistanceDBIDListIter