public class LongCompare extends Object
| Constructor and Description |
|---|
LongCompare() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(long x,
long y)
Compares two
long values numerically. |
public static int compare(long x,
long y)
long values numerically.
The value returned is identical to what would be returned by:
Long.valueOf(x).compareTo(Long.valueOf(y))
x - the first long to comparey - the second long to compare0 if x == y;
a value less than 0 if x < y; and
a value greater than 0 if x > yCopyright © 2020 DataWeb Research. All rights reserved.