|
|||||||||
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.UInteger
public final class UInteger
The unsigned int
type
Field Summary | |
---|---|
static long |
MAX_VALUE
A constant holding the maximum value an unsigned int can
have, 232-1. |
static long |
MIN_VALUE
A constant holding the minimum value an unsigned int can
have, 0. |
Constructor Summary | |
---|---|
UInteger(int value)
Create an unsigned int by masking it with
0xFFFFFFFF i.e. |
|
UInteger(long value)
Create an unsigned int |
|
UInteger(String value)
Create an unsigned int |
Method Summary | |
---|---|
int |
compareTo(UInteger o)
|
double |
doubleValue()
|
boolean |
equals(Object obj)
|
float |
floatValue()
|
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
String |
toString()
|
static UInteger |
valueOf(int value)
Create an unsigned int by masking it with
0xFFFFFFFF i.e. |
static UInteger |
valueOf(String value)
Create an unsigned int |
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 long MIN_VALUE
unsigned int
can
have, 0.
public static final long MAX_VALUE
unsigned int
can
have, 232-1.
Constructor Detail |
---|
public UInteger(long value) throws NumberFormatException
unsigned int
NumberFormatException
- If value
is not in the range
of an unsigned int
public UInteger(int value)
unsigned int
by masking it with
0xFFFFFFFF
i.e. (int) -1
becomes
(uint) 4294967295
public UInteger(String value) throws NumberFormatException
unsigned int
NumberFormatException
- If value
does not contain a
parsable unsigned int
.Method Detail |
---|
public static UInteger valueOf(String value) throws NumberFormatException
unsigned int
NumberFormatException
- If value
does not contain a
parsable unsigned int
.UInteger(String)
public static UInteger valueOf(int value)
unsigned int
by masking it with
0xFFFFFFFF
i.e. (int) -1
becomes
(uint) 4294967295
UInteger(int)
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(UInteger o)
compareTo
in interface Comparable<UInteger>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |