public class NumericComparer extends Object implements Comparator, Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object a,
Object b)
Compare two Items by converting them to numbers and comparing the numeric values.
|
static NumericComparer |
getInstance() |
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 static NumericComparer getInstance()
public int compare(Object a, Object b)
compare in interface Comparatora - the first Item to be compared.b - the second Item to be compared.ClassCastException - if the objects are not Items