|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.graphic.probe.AbstractPickEngine.DistanceComparator
A comparator for ordering hits (HitResult) by distance, from closest to farthest.
Constructor Summary | |
AbstractPickEngine.DistanceComparator(boolean sortAll)
Creates an instance, as specified. |
Method Summary | |
int |
compare(java.lang.Object hitA,
java.lang.Object hitB)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Constructor Detail |
public AbstractPickEngine.DistanceComparator(boolean sortAll)
sortAll
- If true, all hits are sorted (compare() never
returns zero), with equal distance hits being sorted by hash
code; otherwise, duplicate hits are eliminated.Method Detail |
public int compare(java.lang.Object hitA, java.lang.Object hitB)
compare
in interface java.util.Comparator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |