public class UInt64 extends java.lang.Number implements java.lang.Comparable<UInt64>
| Modifier and Type | Field and Description |
|---|---|
static java.math.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 and Description |
|---|
UInt64(java.math.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(java.lang.String value)
Create a UInt64 from a String.
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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.
|
java.lang.String |
toString()
The value of this as a string.
|
java.math.BigInteger |
value()
The value of this as a BigInteger.
|
public static final long MAX_LONG_VALUE
public static final java.math.BigInteger MAX_BIG_VALUE
public static final long MIN_VALUE
public UInt64(long value)
value - Must be a valid integer within MIN_VALUE–MAX_VALUEjava.lang.NumberFormatException - if value is not between MIN_VALUE and MAX_VALUEpublic UInt64(long top,
long bottom)
top - Most significant 4 bytes.bottom - Least significant 4 bytes.public UInt64(java.math.BigInteger value)
value - Must be a valid BigInteger between MIN_VALUE–MAX_BIG_VALUEjava.lang.NumberFormatException - if value is not an integer between MIN_VALUE and MAX_BIG_VALUEpublic UInt64(java.lang.String value)
value - Must parse to a valid integer within MIN_VALUE–MAX_BIG_VALUEjava.lang.NumberFormatException - if value is not an integer between MIN_VALUE and MAX_BIG_VALUEpublic java.math.BigInteger value()
public byte byteValue()
byteValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic short shortValue()
shortValue in class java.lang.Numberpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(UInt64 other)
compareTo in interface java.lang.Comparable<UInt64>public java.lang.String toString()
toString in class java.lang.Objectpublic long top()
public long bottom()