T
- object typepublic static class BVFeatureQuery.ObjectDistanceEntry<T> extends java.lang.Object implements java.lang.Comparable<BVFeatureQuery.ObjectDistanceEntry<T>>
Constructor and Description |
---|
ObjectDistanceEntry(T object,
double distance) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BVFeatureQuery.ObjectDistanceEntry<T> o)
Compares by distance (ascending) then by object hashcode (ascending) to enforce
uniqueness
|
double |
getDistance()
Distance
|
T |
getObject()
Underlying object
|
public ObjectDistanceEntry(T object, double distance)
public T getObject()
public double getDistance()
public int compareTo(BVFeatureQuery.ObjectDistanceEntry<T> o)
compareTo
in interface java.lang.Comparable<BVFeatureQuery.ObjectDistanceEntry<T>>