public class IntComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
static IntComparator |
INSTANCE
A static instance of a IntComparator
|
| Modifier | Constructor and Description |
|---|---|
private |
IntComparator()
A private constructor of the IntComparator class
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Integer integer1,
java.lang.Integer integer2)
Compare two integers.
|
public static final IntComparator INSTANCE
private IntComparator()
public int compare(java.lang.Integer integer1,
java.lang.Integer integer2)
compare in interface java.util.Comparator<java.lang.Integer>integer1 - First integerinteger2 - Second integer