Package org.locationtech.jts.geom
Class CoordinateArrays.BidirectionalComparator
- java.lang.Object
-
- org.locationtech.jts.geom.CoordinateArrays.BidirectionalComparator
-
- All Implemented Interfaces:
Comparator
- Enclosing class:
- CoordinateArrays
public static class CoordinateArrays.BidirectionalComparator extends Object implements Comparator
AComparatorforCoordinatearrays 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 Constructor Description BidirectionalComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)intOLDcompare(Object o1, Object o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-