public static class CoordinateArrays.BidirectionalComparator extends Object implements Comparator
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 and Description |
---|
BidirectionalComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
int |
OLDcompare(Object o1,
Object o2) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Copyright © 2022. All rights reserved.