|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
org.jooq.tools.unsigned.UNumber
org.jooq.tools.unsigned.ULong
public final class ULong
The unsigned long
type
Field Summary | |
---|---|
static BigInteger |
MAX_VALUE
A constant holding the maximum value an unsigned long can
have, 264-1. |
static BigInteger |
MAX_VALUE_LONG
A constant holding the maximum value + 1 an signed long can
have, 263. |
static BigInteger |
MIN_VALUE
A constant holding the minimum value an unsigned long can
have, 0. |
Constructor Summary | |
---|---|
ULong(BigInteger value)
Create an unsigned long |
|
ULong(long value)
Create an unsigned long by masking it with
0xFFFFFFFFFFFFFFFF i.e. |
|
ULong(String value)
Create an unsigned long |
Method Summary | |
---|---|
int |
compareTo(ULong o)
|
double |
doubleValue()
|
boolean |
equals(Object obj)
|
float |
floatValue()
|
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
String |
toString()
|
static ULong |
valueOf(long value)
Create an unsigned long by masking it with
0xFFFFFFFFFFFFFFFF i.e. |
static ULong |
valueOf(String value)
Create an unsigned long |
Methods inherited from class org.jooq.tools.unsigned.UNumber |
---|
toBigInteger |
Methods inherited from class java.lang.Number |
---|
byteValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final BigInteger MIN_VALUE
unsigned long
can
have, 0.
public static final BigInteger MAX_VALUE
unsigned long
can
have, 264-1.
public static final BigInteger MAX_VALUE_LONG
signed long
can
have, 263.
Constructor Detail |
---|
public ULong(BigInteger value) throws NumberFormatException
unsigned long
NumberFormatException
- If value
is not in the range
of an unsigned long
public ULong(long value)
unsigned long
by masking it with
0xFFFFFFFFFFFFFFFF
i.e. (long) -1
becomes
(uint) 18446744073709551615
public ULong(String value) throws NumberFormatException
unsigned long
NumberFormatException
- If value
does not contain a
parsable unsigned long
.Method Detail |
---|
public static ULong valueOf(String value) throws NumberFormatException
unsigned long
NumberFormatException
- If value
does not contain a
parsable unsigned long
.ULong(String)
public static ULong valueOf(long value)
unsigned long
by masking it with
0xFFFFFFFFFFFFFFFF
i.e. (long) -1
becomes
(uint) 18446744073709551615
ULong(long)
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(ULong o)
compareTo
in interface Comparable<ULong>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |