public final class Serial
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static long |
MAX32 |
Modifier | Constructor and Description |
---|---|
private |
Serial() |
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.
|
private static final long MAX32
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