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 Details

    • normalOrder

      boolean normalOrder
      The 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