Comparator<T>
BigDecimalComparator
, BigIntegerComparator
public abstract class AbstractComparableNumberComparator<T extends Number & Comparable<T>> extends Object implements Comparator<T>
Constructor | Description |
---|---|
AbstractComparableNumberComparator() |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(T number1,
T number2) |
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(T number1, T number2)
compare
in interface Comparator<T extends Number & Comparable<T>>
Copyright © 2014–2019. All rights reserved.