Package org.locationtech.jts.geom
Class CoordinateArrays.BidirectionalComparator
java.lang.Object
org.locationtech.jts.geom.CoordinateArrays.BidirectionalComparator
- All Implemented Interfaces:
Comparator
- Enclosing class:
- CoordinateArrays
A
Comparator
for Coordinate
arrays
modulo their directionality.
E.g. if two coordinate arrays are identical but reversed
they will compare as equal under this ordering.
If the arrays are not equal, the ordering returned
is the ordering in the forward direction.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BidirectionalComparator
public BidirectionalComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
-
OLDcompare
-