public final class CompareUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(int x,
int y)
Same as
Long.compare(long, long). |
static int |
compare(long x,
long y)
Same as
Integer.compare(int, int). |
public static int compare(long x,
long y)
Integer.compare(int, int).x - the first number.y - the second number.public static int compare(int x,
int y)
Long.compare(long, long).x - the first number.y - the second number.