public abstract class U8Id extends UnsignedIntBasedId
Modifier and Type | Field and Description |
---|---|
static int |
MAX_VALUE
Highest valid value.
|
id
E_BAD, E_NULL_BYTES, E_NULL_STR, E_OOR, MIN_VALUE
Modifier | Constructor and Description |
---|---|
protected |
U8Id(int id)
Constructs the id.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
rangeCheck(int value)
Ensures that the given value is within range.
|
byte |
toByte()
Returns this id as a byte.
|
equals, hashCode, toInt, toString
parseIntStr, parseLongStr
getRefQ, keyFromBytes
public static final int MAX_VALUE
public byte toByte()
protected static void rangeCheck(int value)
value
- the value to checkIllegalArgumentException
- if the value is out of rangeCopyright © 2015. All Rights Reserved.