public final class UINT16 extends java.lang.Number implements java.lang.Comparable<UINT16>
Modifier and Type | Field and Description |
---|---|
static UINT16 |
MAX_VALUE |
static UINT16 |
MIN_VALUE |
static int |
SIZE
Size of type in bytes.
|
Constructor and Description |
---|
UINT16(int intValue) |
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes() |
int |
compareTo(UINT16 o) |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
static UINT16 |
read(java.io.InputStream is) |
java.lang.String |
toString()
String notated in hexadecimal big endian
|
static UINT16 |
valueOf(byte[] bytes) |
public static final int SIZE
public static final UINT16 MIN_VALUE
public static final UINT16 MAX_VALUE
public byte[] bytes()
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public double doubleValue()
doubleValue
in class java.lang.Number
public int compareTo(UINT16 o)
compareTo
in interface java.lang.Comparable<UINT16>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static UINT16 valueOf(byte[] bytes) throws java.io.IOException
java.io.IOException
public static UINT16 read(java.io.InputStream is) throws java.io.IOException
java.io.IOException