protected class DoubleDistanceDBIDList.Iter extends Object implements DoubleDistanceDBIDResultIter
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
protected |
DoubleDistanceDBIDList.Iter() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
double |
doubleDistance()
Get the distance
|
DoubleDistance |
getDistance()
Deprecated.
|
DoubleDistanceDBIDPair |
getDistancePair()
Get an object pair.
|
int |
internalGetIndex()
Get the internal index.
|
String |
toString() |
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
public boolean valid()
Iter
public void advance()
Iter
@Deprecated public DoubleDistance getDistance()
DoubleDistanceDBIDResultIter
getDistance
in interface DistanceDBIDResultIter<DoubleDistance>
getDistance
in interface DoubleDistanceDBIDResultIter
public double doubleDistance()
DoubleDistanceDBIDResultIter
doubleDistance
in interface DoubleDistanceDBIDResultIter
public DoubleDistanceDBIDPair getDistancePair()
DoubleDistanceDBIDResultIter
getDistancePair
in interface DistanceDBIDResultIter<DoubleDistance>
getDistancePair
in interface DoubleDistanceDBIDResultIter