| Modifier and Type | Field and Description |
|---|---|
static short |
MAX_VALUE
The maximum value of an unsigned byte integer,
which is 255.
|
static short |
MIN_VALUE
The minimum value of an unsigned byte integer,
which is 0.
|
static int |
SIZE
The number of bits used to represent an unsigned short integer in
binary form, which is 8.
|
| Modifier | Constructor and Description |
|---|---|
private |
UByte()
This class cannot get instantiated.
|
public static final short MIN_VALUE
public static final short MAX_VALUE
public static final int SIZE
public static void check(int i,
String subject,
String error)
i - The integer to check to be in the range of an unsigned byte
integer (8 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.IllegalArgumentException - If i is less than
MIN_VALUE or greater than MAX_VALUE.public static void check(int i)
i - The integer to check to be in the range of an unsigned byte
integer (8 bits).IllegalArgumentException - If i is less than
MIN_VALUE or greater than MAX_VALUE.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.