| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_VALUE
The maximum value of an unsigned long integer,
which is 9223372036854775807L.
|
static long |
MIN_VALUE
The minimum value of an unsigned long integer,
which is 0L.
|
static int |
SIZE
The number of bits used to represent an unsigned long integer in
binary form, which is 63.
|
| Modifier | Constructor and Description |
|---|---|
private |
ULong()
This class cannot get instantiated.
|
public static final long MAX_VALUE
public static final long MIN_VALUE
public static final int SIZE
public static boolean check(long l)
l - The long integer to check to be in the range of an unsigned
long integer (63 bits).trueIllegalArgumentException - If l is less than
MIN_VALUE or greater than MAX_VALUE.public static boolean check(long l,
@CheckForNull
String subject,
@CheckForNull
String error)
l - The long integer to check to be in the range of an unsigned
long integer (63 bits).subject - The subject of the exception message
- may be null.
This should not end with a punctuation character.error - First sentence of the exception message
- may be null.
This should not end with a punctuation character.trueIllegalArgumentException - If l is less than
MIN_VALUE or greater than MAX_VALUE.Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.