public class GeometryDistanceComparator<T extends org.locationtech.jts.geom.Geometry> extends Object implements Comparator<T>, Serializable
| Constructor and Description |
|---|
GeometryDistanceComparator(T queryCenter,
boolean normalOrder)
Instantiates a new geometry distance comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T p1,
T p2) |
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 GeometryDistanceComparator(T queryCenter, boolean normalOrder)
queryCenter - the query centernormalOrder - the normal orderpublic int compare(T p1, T p2)
compare in interface Comparator<T extends org.locationtech.jts.geom.Geometry>Copyright © 2023 The Apache Software Foundation. All rights reserved.