com.vividsolutions.jts.geom

Class CoordinateArrays.BidirectionalComparator

Enclosing Class:
CoordinateArrays
Implemented Interfaces:
Comparator

public static class CoordinateArrays.BidirectionalComparator
extends java.lang.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.

Method Summary

int
OLDcompare(Object o1, Object o2)
int
compare(Object o1, Object o2)

Method Details

OLDcompare

public int OLDcompare(Object o1,
                      Object o2)

compare

public int compare(Object o1,
                   Object o2)