protected class GenericDistanceDBIDList.Iter extends Object implements DistanceDBIDResultIter<D>
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
Iterator position.
|
Modifier | Constructor and Description |
---|---|
protected |
GenericDistanceDBIDList.Iter() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
D |
getDistance()
Get the distance
|
DistanceDBIDPair<D> |
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
public D getDistance()
DistanceDBIDResultIter
getDistance
in interface DistanceDBIDResultIter<D extends Distance<D>>
public DistanceDBIDPair<D> getDistancePair()
DistanceDBIDResultIter
getDistancePair
in interface DistanceDBIDResultIter<D extends Distance<D>>