Compares two int values numerically.
The value returned is identical to what would be returned by:
Integer.valueOf(x).compareTo(Integer.valueOf(y))
x | the first int to compare | |
y | the second int to compare |
0 if x == y;
a value less than 0 if x < y; and
a value greater than 0 if x > y
Diagram: Number