|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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)
Deprecated. - Use valueOf(int) , or Unsigned.ushort(int)
instead |
|
UShort(short value)
Deprecated. - Use valueOf(short) , or
Unsigned.ushort(short) instead |
|
UShort(String value)
Deprecated. - Use valueOf(String) , or
Unsigned.ushort(String) instead |
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(int value)
Create an unsigned short |
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 |
---|
@Deprecated public UShort(int value) throws NumberFormatException
valueOf(int)
, or Unsigned.ushort(int)
instead
unsigned short
NumberFormatException
- If value
is not in the range
of an unsigned short
@Deprecated public UShort(short value)
valueOf(short)
, or
Unsigned.ushort(short)
instead
unsigned short
by masking it with
0xFFFF
i.e. (short) -1
becomes
(ushort) 65535
@Deprecated public UShort(String value) throws NumberFormatException
valueOf(String)
, or
Unsigned.ushort(String)
instead
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
.public static UShort valueOf(short value)
unsigned short
by masking it with
0xFFFF
i.e. (short) -1
becomes
(ushort) 65535
public static UShort valueOf(int value) throws NumberFormatException
unsigned short
NumberFormatException
- If value
is not in the range
of an unsigned 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 |