public final class NumberComparator extends Object implements Comparator<Number>
Comparator
for instances of Number
.Modifier and Type | Field and Description |
---|---|
private static NumberComparator |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
NumberComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Number o1,
Number o2) |
static NumberComparator |
getInstance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
private static final NumberComparator INSTANCE
public int compare(Number o1, Number o2)
compare
in interface Comparator<Number>
public static NumberComparator getInstance()
NumberComparator
.Copyright © 2001–2016 mmm-Team. All rights reserved.