|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jooq.tools.unsigned.Unsigned
public final class Unsigned
A utility class for static access to unsigned number functionality.
It essentially contains factory methods for unsigned number wrappers. In future versions, it will also contain some arithmetic methods, handling regular arithmetic and bitwise operations
| Method Summary | |
|---|---|
static UByte |
ubyte(byte value)
Create an unsigned byte by masking it with 0xFF
i.e. |
static UByte |
ubyte(short value)
Create an unsigned byte |
static UByte |
ubyte(String value)
Create an unsigned byte |
static UInteger |
uint(int value)
Create an unsigned int by masking it with
0xFFFFFFFF i.e. |
static UInteger |
uint(long value)
Create an unsigned int |
static UInteger |
uint(String value)
Create an unsigned int |
static ULong |
ulong(BigInteger value)
Create an unsigned long |
static ULong |
ulong(long value)
Create an unsigned long by masking it with
0xFFFFFFFFFFFFFFFF i.e. |
static ULong |
ulong(String value)
Create an unsigned long |
static UShort |
ushort(int value)
Create an unsigned short |
static UShort |
ushort(short value)
Create an unsigned short by masking it with
0xFFFF i.e. |
static UShort |
ushort(String value)
Create an unsigned short |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UByte ubyte(String value)
throws NumberFormatException
unsigned byte
NumberFormatException - If value does not contain a
parsable unsigned byte.UByte.UByte(String)public static UByte ubyte(byte value)
unsigned byte by masking it with 0xFF
i.e. (byte) -1 becomes (ubyte) 255
UByte.UByte(byte)
public static UByte ubyte(short value)
throws NumberFormatException
unsigned byte
NumberFormatException - If value is not in the range
of an unsigned byteUByte.UByte(short)
public static UShort ushort(String value)
throws NumberFormatException
unsigned short
NumberFormatException - If value does not contain a
parsable unsigned short.UShort.UShort(String)public static UShort ushort(short value)
unsigned short by masking it with
0xFFFF i.e. (short) -1 becomes
(ushort) 65535
UShort.UShort(short)
public static UShort ushort(int value)
throws NumberFormatException
unsigned short
NumberFormatException - If value is not in the range
of an unsigned shortUShort.UShort(int)
public static UInteger uint(String value)
throws NumberFormatException
unsigned int
NumberFormatException - If value does not contain a
parsable unsigned int.UInteger.UInteger(String)public static UInteger uint(int value)
unsigned int by masking it with
0xFFFFFFFF i.e. (int) -1 becomes
(uint) 4294967295
UInteger.UInteger(int)
public static UInteger uint(long value)
throws NumberFormatException
unsigned int
NumberFormatException - If value is not in the range
of an unsigned intUInteger.UInteger(long)
public static ULong ulong(String value)
throws NumberFormatException
unsigned long
NumberFormatException - If value does not contain a
parsable unsigned long.ULong.ULong(String)public static ULong ulong(long value)
unsigned long by masking it with
0xFFFFFFFFFFFFFFFF i.e. (long) -1 becomes
(uint) 18446744073709551615
ULong.ULong(long)
public static ULong ulong(BigInteger value)
throws NumberFormatException
unsigned long
NumberFormatException - If value is not in the range
of an unsigned longULong.ULong(BigInteger)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||