java.lang.Object
java.lang.Number
org.jooq.types.UNumber
org.jooq.types.ULong
- All Implemented Interfaces:
- Serializable,- Comparable<ULong>
The 
unsigned long type- Author:
- Lukas Eder, Jens Nerche, Ivan Sokolov
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ULongA constant holding the maximum value + 1 ansigned longcan have as ULong, 263.static final BigIntegerA constant holding the maximum value anunsigned longcan have, 264-1.static final BigIntegerA constant holding the maximum value + 1 ansigned longcan have, 263.static final ULongA constant holding the minimum value anunsigned longcan have as ULong, 0.static final BigIntegerA constant holding the minimum value anunsigned longcan have, 0.
- 
Method SummaryModifier and TypeMethodDescriptionadd(int val) add(long val) static intcompare(long x, long y) intdoublebooleanfloatinthashCode()intintValue()longsubtract(int val) subtract(long val) toString()static ULongvalueOf(long value) Create anunsigned longby masking it with0xFFFFFFFFFFFFFFFFi.e.static ULongCreate anunsigned longstatic ULongvalueOf(BigInteger value) Create anunsigned longMethods inherited from class org.jooq.types.UNumbertoBigIntegerMethods inherited from class java.lang.NumberbyteValue, shortValue
- 
Field Details- 
MIN_VALUEA constant holding the minimum value anunsigned longcan have, 0.
- 
MAX_VALUEA constant holding the maximum value anunsigned longcan have, 264-1.
- 
MAX_VALUE_LONGA constant holding the maximum value + 1 ansigned longcan have, 263.
- 
MINA constant holding the minimum value anunsigned longcan have as ULong, 0.
- 
MAXA constant holding the maximum value + 1 ansigned longcan have as ULong, 263.
 
- 
- 
Method Details- 
valueOfCreate anunsigned long- Throws:
- NumberFormatException- If- valuedoes not contain a parsable- unsigned long.
 
- 
valueOfCreate anunsigned longby masking it with0xFFFFFFFFFFFFFFFFi.e.(long) -1becomes(uint) 18446744073709551615
- 
valueOfCreate anunsigned long- Throws:
- NumberFormatException- If- valueis not in the range of an- unsigned long
 
- 
comparepublic static int compare(long x, long y) 
- 
intValuepublic int intValue()
- 
longValuepublic long longValue()
- 
floatValuepublic float floatValue()- Specified by:
- floatValuein class- Number
 
- 
doubleValuepublic double doubleValue()- Specified by:
- doubleValuein class- Number
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
compareTo- Specified by:
- compareToin interface- Comparable<ULong>
 
- 
add- Throws:
- NumberFormatException
 
- 
add- Throws:
- NumberFormatException
 
- 
add- Throws:
- NumberFormatException
 
- 
subtract
- 
subtract
- 
subtract
 
-