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.- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BidirectionalComparator
public BidirectionalComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator
-
OLDcompare
-