public final class Serial
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
compare(long serial1,
long serial2)
Compares two numbers using serial arithmetic.
|
static long |
increment(long serial)
Increments a serial number.
|
public static int compare(long serial1, long serial2)
serial1
- The first integerserial2
- The second integerjava.lang.IllegalArgumentException
- serial1 or serial2 is out of rangepublic static long increment(long serial)
serial
- The serial numberjava.lang.IllegalArgumentException
- serial is out of range