public class IntComparator extends Object implements Comparator<Integer>
Modifier and Type | Field and Description |
---|---|
static IntComparator |
INSTANCE
A static instance of a IntComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Integer integer1,
Integer integer2)
Compare two integers.
|
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
public static final IntComparator INSTANCE
public int compare(Integer integer1, Integer integer2)
compare
in interface Comparator<Integer>
integer1
- First integerinteger2
- Second integerCopyright © 2012–2021 Apache Mavibot Project Parent. All rights reserved.