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
FieldsModifier and TypeFieldDescriptionstatic UIntegerA constant holding the maximum value anunsigned intcan have as UInteger, 232-1.static longA constant holding the maximum value anunsigned intcan have, 232-1.static UIntegerA constant holding the minimum value anunsigned intcan have as UInteger, 0.static longA constant holding the minimum value anunsigned intcan have, 0. -
Method Summary
Modifier and TypeMethodDescriptionadd(int val)intdoublebooleanfloatinthashCode()intintValue()longsubtract(int val)Get this number as aBigInteger.toString()static UIntegervalueOf(int value)Create anunsigned intby masking it with0xFFFFFFFFi.e.static UIntegervalueOf(long value)Create anunsigned intstatic UIntegerCreate anunsigned intMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final long MIN_VALUEA constant holding the minimum value anunsigned intcan have, 0.- See Also:
- Constant Field Values
-
MAX_VALUE
public static final long MAX_VALUEA constant holding the maximum value anunsigned intcan have, 232-1.- See Also:
- Constant Field Values
-
MIN
A constant holding the minimum value anunsigned intcan have as UInteger, 0. -
MAX
A constant holding the maximum value anunsigned intcan have as UInteger, 232-1.
-
-
Method Details
-
valueOf
Create anunsigned int- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned int.
-
valueOf
Create anunsigned intby masking it with0xFFFFFFFFi.e.(int) -1becomes(uint) 4294967295 -
valueOf
Create anunsigned int- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
toBigInteger
Description copied from class:UNumberGet this number as aBigInteger. This is a convenience method for callingnew BigInteger(toString())- Overrides:
toBigIntegerin classUNumber
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<UInteger>
-
add
-
add
-
subtract
-
subtract
-