Class BoundablePairDistanceComparator
java.lang.Object
org.locationtech.jts.index.strtree.BoundablePairDistanceComparator
- All Implemented Interfaces:
Serializable,Comparator<BoundablePair>
public class BoundablePairDistanceComparator
extends Object
implements Comparator<BoundablePair>, Serializable
The Class BoundablePairDistanceComparator. It implements Java comparator and is used
as a parameter to sort the BoundablePair list.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoundablePairDistanceComparator(boolean normalOrder) Instantiates a new boundable pair distance comparator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
normalOrder
boolean normalOrderThe normal order.
-
-
Constructor Details
-
BoundablePairDistanceComparator
public BoundablePairDistanceComparator(boolean normalOrder) Instantiates a new boundable pair distance comparator.- Parameters:
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.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<BoundablePair>
-