public final class UInteger extends UNumber implements Comparable<UInteger>
unsigned int type| 限定符和类型 | 字段和说明 |
|---|---|
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. |
| 构造器和说明 |
|---|
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 |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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 UInteger(long value)
throws NumberFormatException
unsigned intNumberFormatException - If value is not in the range
of an unsigned intpublic UInteger(int value)
unsigned int by masking it with
0xFFFFFFFF i.e. (int) -1 becomes
(uint) 4294967295public UInteger(String value) throws NumberFormatException
unsigned intNumberFormatException - If value does not contain a
parsable unsigned int.public static UInteger valueOf(String value) throws NumberFormatException
unsigned intNumberFormatException - 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) 4294967295UInteger(int)public float floatValue()
floatValue 在类中 Numberpublic double doubleValue()
doubleValue 在类中 Numberpublic int compareTo(UInteger o)
compareTo 在接口中 Comparable<UInteger>Copyright © 2016. All rights reserved.