public final class UInteger extends UNumber implements Comparable<UInteger>
unsigned int type| Modifier and Type | Field and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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(long value)
Create an
unsigned int |
static UInteger |
valueOf(String value)
Create an
unsigned int |
toBigIntegerbyteValue, shortValuepublic static final long MIN_VALUE
unsigned int can
have, 0.public static final long MAX_VALUE
unsigned int can
have, 232-1.public static UInteger valueOf(String value) throws NumberFormatException
unsigned intNumberFormatException - If value does not contain a
parsable unsigned int.public static UInteger valueOf(int value)
unsigned int by masking it with
0xFFFFFFFF i.e. (int) -1 becomes
(uint) 4294967295public static UInteger valueOf(long value) throws NumberFormatException
unsigned intNumberFormatException - If value is not in the range
of an unsigned bytepublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic int compareTo(UInteger o)
compareTo in interface Comparable<UInteger>Copyright © 2016. All Rights Reserved.