public class DistanceResultComparator extends Object implements Comparator<Result>
Result objects.| Constructor and Description |
|---|
DistanceResultComparator(org.opengis.filter.sort.SortOrder distanceOrder)
Constructs the comparator with the specified sort order, either distance ascending or distance
descending.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Result contentA,
Result contentB)
Compares the distance (in meters) between the two results.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic DistanceResultComparator(org.opengis.filter.sort.SortOrder distanceOrder)
distanceOrder - the distance sort orderpublic int compare(Result contentA, Result contentB)
compare in interface Comparator<Result>This work is licensed under a Creative Commons Attribution 4.0 International License.