Class BoundablePairDistanceComparator
- java.lang.Object
-
- org.locationtech.jts.index.strtree.BoundablePairDistanceComparator
-
- All Implemented Interfaces:
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
The Class BoundablePairDistanceComparator. It implements Java comparator and is used as a parameter to sort the BoundablePair list.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundablePairDistanceComparator(boolean normalOrder)
Instantiates a new boundable pair distance comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.locationtech.jts.index.strtree.BoundablePair p1, org.locationtech.jts.index.strtree.BoundablePair p2)
-
-
-
Constructor Detail
-
BoundablePairDistanceComparator
public BoundablePairDistanceComparator(boolean normalOrder)
Instantiates a new boundable pair distance comparator.- Parameters:
normalOrder
- true puts the lowest record at the head of this queue. This is the natural order. PriorityQueue peek() will get the least element.
-
-