D
- Distance typepublic interface DistanceResultPair<D extends Distance<?>> extends PairInterface<D,DBID>, Comparable<DistanceResultPair<D>>
Modifier and Type | Method and Description |
---|---|
int |
compareByDistance(DistanceResultPair<D> o)
Compare value, but by distance only.
|
DBID |
getDBID()
Getter for second element in pair
|
D |
getDistance()
Getter for first
|
void |
setDistance(D first)
Setter for first
|
void |
setID(DBID second)
Setter for second
|
getFirst, getSecond
compareTo
D getDistance()
void setDistance(D first)
first
- new value for first elementDBID getDBID()
void setID(DBID second)
second
- new value for second elementint compareByDistance(DistanceResultPair<D> o)
o
- Other object