public final class PositionComparator extends Object implements Comparator<Position>
Position
objects.Modifier and Type | Field and Description |
---|---|
static PositionComparator |
INSTANCE |
Constructor and Description |
---|
PositionComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Position p1,
Position p2) |
clone, equals, finalize, 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
public static final PositionComparator INSTANCE
public int compare(Position p1, Position p2)
compare
in interface Comparator<Position>