|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.jooq.tools.unsigned.UNumber
org.jooq.tools.unsigned.UShort
public final class UShort
The unsigned short
type
Field Summary | |
---|---|
static int |
MAX_VALUE
A constant holding the maximum value an unsigned short can
have, 216-1. |
static int |
MIN_VALUE
A constant holding the minimum value an unsigned short can
have, 0. |
Constructor Summary | |
---|---|
UShort(int value)
Create an unsigned short |
|
UShort(short value)
Create an unsigned short by masking it with
0xFFFF i.e. |
|
UShort(String value)
Create an unsigned short |
Method Summary | |
---|---|
int |
compareTo(UShort o)
|
double |
doubleValue()
|
boolean |
equals(Object obj)
|
float |
floatValue()
|
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
String |
toString()
|
static UShort |
valueOf(short value)
Create an unsigned short by masking it with
0xFFFF i.e. |
static UShort |
valueOf(String value)
Create an unsigned short |
Methods inherited from class org.jooq.tools.unsigned.UNumber |
---|
toBigInteger |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MIN_VALUE
unsigned short
can
have, 0.
public static final int MAX_VALUE
unsigned short
can
have, 216-1.
Constructor Detail |
---|
public UShort(int value) throws NumberFormatException
unsigned short
NumberFormatException
- If value
is not in the range
of an unsigned short
public UShort(short value)
unsigned short
by masking it with
0xFFFF
i.e. (short) -1
becomes
(ushort) 65535
public UShort(String value) throws NumberFormatException
unsigned short
NumberFormatException
- If value
does not contain a
parsable unsigned short
.Method Detail |
---|
public static UShort valueOf(String value) throws NumberFormatException
unsigned short
NumberFormatException
- If value
does not contain a
parsable unsigned short
.UShort(String)
public static UShort valueOf(short value)
unsigned short
by masking it with
0xFFFF
i.e. (short) -1
becomes
(ushort) 65535
UShort(short)
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(UShort o)
compareTo
in interface Comparable<UShort>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |