public final class IntegerComparator extends Object implements Comparator<Integer>
Comparator implementation for Integers.| Constructor and Description |
|---|
IntegerComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Integer o1,
Integer o2) |
static IntegerComparator |
instance()
Returns static
IntegerComparator instance. |
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 IntegerComparator instance()
IntegerComparator instance.IntegerComparator instancepublic int compare(Integer o1, Integer o2)
compare in interface Comparator<Integer>Copyright © 2020. All rights reserved.