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