com.vividsolutions.jts.geom
Class CoordinateArrays.BidirectionalComparator
java.lang.Object
com.vividsolutions.jts.geom.CoordinateArrays.BidirectionalComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- CoordinateArrays
public static class CoordinateArrays.BidirectionalComparator
- extends Object
- implements Comparator
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoordinateArrays.BidirectionalComparator
public CoordinateArrays.BidirectionalComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator
OLDcompare
public int OLDcompare(Object o1,
Object o2)
Copyright © 2012. All Rights Reserved.