public abstract class UnsignedId extends CacheableDataType
| Modifier and Type | Field and Description |
|---|---|
protected static String |
E_BAD
Error message for bad identifier.
|
protected static String |
E_NULL_BYTES
Error message when byte array is null.
|
protected static String |
E_NULL_STR
Error message when String is null.
|
protected static String |
E_OOR
Error message for out of range number.
|
static int |
MIN_VALUE
Lowest valid value for an id.
|
| Constructor and Description |
|---|
UnsignedId() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
parseIntStr(String s)
Returns the int equivalent to the specified string.
|
protected static long |
parseLongStr(String s)
Returns the long equivalent to the specified string.
|
getRefQ, keyFromBytesprotected static final String E_BAD
protected static final String E_OOR
protected static final String E_NULL_BYTES
protected static final String E_NULL_STR
public static final int MIN_VALUE
protected static int parseIntStr(String s)
s - the stringIllegalArgumentException - if the string is invalidNullPointerException - if the string is nullprotected static long parseLongStr(String s)
s - the stringIllegalArgumentException - if the string is invalidNullPointerException - if the string is nullCopyright © 2014. All Rights Reserved.