T
- type of object being comparedpublic interface DistanceComparator<T>
Modifier and Type | Method and Description |
---|---|
double |
compare(T o1,
T o2)
Compare two objects, returning a score
or distance.
|
boolean |
isDistance() |
double compare(T o1, T o2)
o1
- the first objecto2
- the second objectboolean isDistance()