public class NumberComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Number>
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Number o1,
java.lang.Number o2) |
static NumberComparator |
getInstance()
Get the number comparator.
|
public static NumberComparator getInstance()
public int compare(java.lang.Number o1, java.lang.Number o2)
compare
in interface java.util.Comparator<java.lang.Number>