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