public interface Point2DComparator extends Comparator<Point2D>
Description: This interface must be implemented by all comparators of DataPoint2D. The comparator uses a tolerance to specify when two values are within tolerance of each other, they are equal
| Modifier and Type | Method and Description |
|---|---|
double |
getTolerance()
Tolerance indicates the distance two values can be apart, but still
considered equal.
|
void |
setTolerance(double newTolerance)
Tolerance indicates the distance two values can be apart, but still
considered equal.
|
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongvoid setTolerance(double newTolerance)
newTolerance - The new tolerance valuedouble getTolerance()