|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.freedesktop.dbus.UInt64
public class UInt64
Class to represent unsigned 64-bit numbers. Warning: Any functions which take or return a long are restricted to the range of a signed 64bit number. Use the BigInteger methods if you wish access to the full range.
| Field Summary | |
|---|---|
static BigInteger |
MAX_BIG_VALUE
Maximum allowed value (when accessed as a BigInteger) |
static long |
MAX_LONG_VALUE
Maximum allowed value (when accessed as a long) |
static long |
MIN_VALUE
Minimum allowed value |
| Constructor Summary | |
|---|---|
UInt64(BigInteger value)
Create a UInt64 from a BigInteger |
|
UInt64(long value)
Create a UInt64 from a long. |
|
UInt64(long top,
long bottom)
Create a UInt64 from two longs. |
|
UInt64(String value)
Create a UInt64 from a String. |
|
| Method Summary | |
|---|---|
long |
bottom()
Least significant 4 bytes. |
byte |
byteValue()
The value of this as a byte. |
int |
compareTo(UInt64 other)
Compare two UInt32s. |
double |
doubleValue()
The value of this as a double. |
boolean |
equals(Object o)
Test two UInt64s for equality. |
float |
floatValue()
The value of this as a float. |
int |
hashCode()
|
int |
intValue()
The value of this as a int. |
long |
longValue()
The value of this as a long. |
short |
shortValue()
The value of this as a short. |
long |
top()
Most significant 4 bytes. |
String |
toString()
The value of this as a string. |
BigInteger |
value()
The value of this as a BigInteger. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long MAX_LONG_VALUE
public static final BigInteger MAX_BIG_VALUE
public static final long MIN_VALUE
| Constructor Detail |
|---|
public UInt64(long value)
value - Must be a valid integer within MIN_VALUE–MAX_VALUE
NumberFormatException - if value is not between MIN_VALUE and MAX_VALUE
public UInt64(long top,
long bottom)
top - Most significant 4 bytes.bottom - Least significant 4 bytes.public UInt64(BigInteger value)
value - Must be a valid BigInteger between MIN_VALUE–MAX_BIG_VALUE
NumberFormatException - if value is not an integer between MIN_VALUE and MAX_BIG_VALUEpublic UInt64(String value)
value - Must parse to a valid integer within MIN_VALUE–MAX_BIG_VALUE
NumberFormatException - if value is not an integer between MIN_VALUE and MAX_BIG_VALUE| Method Detail |
|---|
public BigInteger value()
public byte byteValue()
byteValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic short shortValue()
shortValue in class Numberpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(UInt64 other)
compareTo in interface Comparable<UInt64>public String toString()
toString in class Objectpublic long top()
public long bottom()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||