public final class IntegerComparator extends Object implements Comparator<Integer>, Serializable
| Constructor and Description |
|---|
IntegerComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Integer obj1,
Integer obj2)
Compare two objects.
|
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 int compare(Integer obj1, Integer obj2)
compare in interface Comparator<Integer>obj1 - First objectobj2 - Second objectCopyright © 2021. All rights reserved.