java.lang.Object
java.lang.Number
org.jooq.types.UNumber
org.jooq.types.UInteger
- All Implemented Interfaces:
Serializable
,Comparable<UInteger>
The
unsigned int
type- Author:
- Lukas Eder, Ed Schaller, Jens Nerche
- See Also:
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionstatic UInteger
A constant holding the maximum value anunsigned int
can have as UInteger, 232-1.static long
A constant holding the maximum value anunsigned int
can have, 232-1.static UInteger
A constant holding the minimum value anunsigned int
can have as UInteger, 0.static long
A constant holding the minimum value anunsigned int
can have, 0. -
Method Summary
Modifier and TypeMethodDescriptionadd(int val)
int
double
boolean
float
int
hashCode()
int
intValue()
long
subtract(int val)
Get this number as aBigInteger
.toString()
static UInteger
valueOf(int value)
Create anunsigned int
by masking it with0xFFFFFFFF
i.e.static UInteger
valueOf(long value)
Create anunsigned int
static UInteger
Create anunsigned int
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final long MIN_VALUEA constant holding the minimum value anunsigned int
can have, 0.- See Also:
- Constant Field Values
-
MAX_VALUE
public static final long MAX_VALUEA constant holding the maximum value anunsigned int
can have, 232-1.- See Also:
- Constant Field Values
-
MIN
A constant holding the minimum value anunsigned int
can have as UInteger, 0. -
MAX
A constant holding the maximum value anunsigned int
can have as UInteger, 232-1.
-
-
Method Details
-
valueOf
Create anunsigned int
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned int
.
-
valueOf
Create anunsigned int
by masking it with0xFFFFFFFF
i.e.(int) -1
becomes(uint) 4294967295
-
valueOf
Create anunsigned int
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
toBigInteger
Description copied from class:UNumber
Get this number as aBigInteger
. This is a convenience method for callingnew BigInteger(toString())
- Overrides:
toBigInteger
in classUNumber
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UInteger>
-
add
-
add
-
subtract
-
subtract
-