public class NumberRangeComparator extends Object implements Comparator<Range<? extends Number>>
| Constructor and Description |
|---|
NumberRangeComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Range<? extends Number> firstRange,
Range<? extends Number> secondRange) |
static int |
doubleCompare(double firstRangeMin,
double firstRangeMax,
double secondRangeMin,
double secondRangeMax)
Given a set of 4 double representing the extrema of 2 ranges, compare the 2 ranges.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Range<? extends Number> firstRange, Range<? extends Number> secondRange)
compare in interface Comparator<Range<? extends Number>>public static int doubleCompare(double firstRangeMin,
double firstRangeMax,
double secondRangeMin,
double secondRangeMax)
firstRangeMin - the min value of the first rangefirstRangeMax - the max value of the first rangesecondRangeMin - the min value of the second rangesecondRangeMax - the max value of the second rangeCopyright © 1996–2019 Geotools. All rights reserved.