public class BoundablePairDistanceComparator extends Object implements Comparator<org.locationtech.jts.index.strtree.BoundablePair>, Serializable
| Constructor and Description |
|---|
BoundablePairDistanceComparator(boolean normalOrder)
Instantiates a new boundable pair distance comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.locationtech.jts.index.strtree.BoundablePair p1,
org.locationtech.jts.index.strtree.BoundablePair p2) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic BoundablePairDistanceComparator(boolean normalOrder)
normalOrder - true puts the lowest record at the head of this queue.
This is the natural order. PriorityQueue peek() will get the least element.public int compare(org.locationtech.jts.index.strtree.BoundablePair p1,
org.locationtech.jts.index.strtree.BoundablePair p2)
compare in interface Comparator<org.locationtech.jts.index.strtree.BoundablePair>Copyright © 2024. All rights reserved.