Top Description Constructors Methods
org.jooq.types

public final Class Unsigned

extends Object
Class Inheritance
Imports
java.math.BigInteger

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

Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
private
Unsigned()

No instances

Method Summary

Modifier and TypeMethod and Description
public static UByte
ubyte(String value)

Create an unsigned byte

public static UByte
ubyte(byte value)

Create an unsigned byte by masking it with 0xFF i.e. (byte) -1 becomes (ubyte) 255

public static UByte
ubyte(short value)

Create an unsigned byte

public static UByte
ubyte(int value)

Create an unsigned byte

public static UByte
ubyte(long value)

Create an unsigned byte

public static UInteger
uint(String value)

Create an unsigned int

public static UInteger
uint(int value)

Create an unsigned int by masking it with 0xFFFFFFFF i.e. (int) -1 becomes (uint) 4294967295

public static UInteger
uint(long value)

Create an unsigned int

public static ULong
ulong(String value)

Create an unsigned long

public static ULong
ulong(long value)

Create an unsigned long by masking it with 0xFFFFFFFFFFFFFFFF i.e. (long) -1 becomes (uint) 18446744073709551615

public static ULong
ulong(BigInteger value)

Create an unsigned long

public static UShort
ushort(String value)

Create an unsigned short

public static UShort
ushort(short value)

Create an unsigned short by masking it with 0xFFFF i.e. (short) -1 becomes (ushort) 65535

public static UShort
ushort(int value)

Create an unsigned short

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Unsignedback to summary
private Unsigned()

No instances

Method Detail

ubyteback to summary
public static UByte ubyte(String value) throws NumberFormatException

Create an unsigned byte

Exceptions
NumberFormatException:
If value does not contain a parsable unsigned byte.
See Also
UByte#valueOf(String)
ubyteback to summary
public static UByte ubyte(byte value)

Create an unsigned byte by masking it with 0xFF i.e. (byte) -1 becomes (ubyte) 255

See Also
UByte#valueOf(byte)
ubyteback to summary
public static UByte ubyte(short value) throws NumberFormatException

Create an unsigned byte

Exceptions
NumberFormatException:
If value is not in the range of an unsigned byte
See Also
UByte#valueOf(short)
ubyteback to summary
public static UByte ubyte(int value) throws NumberFormatException

Create an unsigned byte

Exceptions
NumberFormatException:
If value is not in the range of an unsigned byte
See Also
UByte#valueOf(short)
ubyteback to summary
public static UByte ubyte(long value) throws NumberFormatException

Create an unsigned byte

Exceptions
NumberFormatException:
If value is not in the range of an unsigned byte
See Also
UByte#valueOf(short)
uintback to summary
public static UInteger uint(String value) throws NumberFormatException

Create an unsigned int

Exceptions
NumberFormatException:
If value does not contain a parsable unsigned int.
See Also
UInteger#valueOf(String)
uintback to summary
public static UInteger uint(int value)

Create an unsigned int by masking it with 0xFFFFFFFF i.e. (int) -1 becomes (uint) 4294967295

See Also
UInteger#valueOf(int)
uintback to summary
public static UInteger uint(long value) throws NumberFormatException

Create an unsigned int

Exceptions
NumberFormatException:
If value is not in the range of an unsigned int
See Also
UInteger#valueOf(long)
ulongback to summary
public static ULong ulong(String value) throws NumberFormatException

Create an unsigned long

Exceptions
NumberFormatException:
If value does not contain a parsable unsigned long.
See Also
ULong#valueOf(String)
ulongback to summary
public static ULong ulong(long value)

Create an unsigned long by masking it with 0xFFFFFFFFFFFFFFFF i.e. (long) -1 becomes (uint) 18446744073709551615

See Also
ULong#valueOf(long)
ulongback to summary
public static ULong ulong(BigInteger value) throws NumberFormatException

Create an unsigned long

Exceptions
NumberFormatException:
If value is not in the range of an unsigned long
See Also
ULong#valueOf(BigInteger)
ushortback to summary
public static UShort ushort(String value) throws NumberFormatException

Create an unsigned short

Exceptions
NumberFormatException:
If value does not contain a parsable unsigned short.
See Also
UShort#valueOf(String)
ushortback to summary
public static UShort ushort(short value)

Create an unsigned short by masking it with 0xFFFF i.e. (short) -1 becomes (ushort) 65535

See Also
UShort#valueOf(short)
ushortback to summary
public static UShort ushort(int value) throws NumberFormatException

Create an unsigned short

Exceptions
NumberFormatException:
If value is not in the range of an unsigned short
See Also
UShort#valueOf(int)