java.io.Serializable, java.util.Comparator<org.locationtech.jts.index.strtree.BoundablePair>public class BoundablePairDistanceComparator
extends java.lang.Object
implements java.util.Comparator<org.locationtech.jts.index.strtree.BoundablePair>, java.io.Serializable
| Constructor | Description |
|---|---|
BoundablePairDistanceComparator(boolean normalOrder) |
Instantiates a new boundable pair distance comparator.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(org.locationtech.jts.index.strtree.BoundablePair p1,
org.locationtech.jts.index.strtree.BoundablePair p2) |
public BoundablePairDistanceComparator(boolean normalOrder)
normalOrder - The true means puts the least record at the head of this queue.
This is the natural order. PriorityQueue peek() will get the least element. Vice versa.Copyright © 2018. All rights reserved.