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.
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private static final String | |
| private static final String | |
| public static final BigInteger | MAX_BIG_VALUE
Maximum allowed value (when accessed as a BigInteger) |
| public static final long | MAX_LONG_VALUE
Maximum allowed value (when accessed as a long) |
| public static final long | MIN_VALUE
Minimum allowed value |
| private final long | |
| private final BigInteger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | UInt64(long
Most significant 4 bytes. _top, long Least significant 4 bytes. _bottom)Create a UInt64 from two longs. |
| public | UInt64(BigInteger
Must be a valid BigInteger between MIN_VALUE–MAX_BIG_VALUE _value)Create a UInt64 from a BigInteger |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public byte | |
| public int | Returns: 0 if equal, -ve or +ve if they are different.other uint64 _other)Implements java. Compare two UInt32s. |
| public double | |
| public boolean | equals(Object
the reference object with which to compare. _o)Overrides java. Test two UInt64s for equality. |
| public float | |
| public int | |
| public int | |
| public long | |
| public short | |
| public long | |
| public String | |
| public BigInteger |
| bottom | back to summary |
|---|---|
| private final long bottom | |
| BOUNDS | back to summary |
|---|---|
| private static final String BOUNDS | |
| ERROR_MSG | back to summary |
|---|---|
| private static final String ERROR_MSG | |
| MAX_BIG_VALUE | back to summary |
|---|---|
| public static final BigInteger MAX_BIG_VALUE Maximum allowed value (when accessed as a BigInteger) | |
| MAX_LONG_VALUE | back to summary |
|---|---|
| public static final long MAX_LONG_VALUE Maximum allowed value (when accessed as a long) | |
| MIN_VALUE | back to summary |
|---|---|
| public static final long MIN_VALUE Minimum allowed value | |
| top | back to summary |
|---|---|
| private final long top | |
| value | back to summary |
|---|---|
| private final BigInteger value | |
| UInt64 | back to summary |
|---|---|
| public UInt64(long _value) Create a UInt64 from a long.
| |
| UInt64 | back to summary |
|---|---|
| public UInt64(long _top, long _bottom) Create a UInt64 from two longs.
| |
| UInt64 | back to summary |
|---|---|
| public UInt64(BigInteger _value) Create a UInt64 from a BigInteger
| |
| UInt64 | back to summary |
|---|---|
| public UInt64(String _value) Create a UInt64 from a String.
| |
| bottom | back to summary |
|---|---|
| public long bottom() Least significant 4 bytes.
| |
| byteValue | back to summary |
|---|---|
| public byte byteValue() Overrides java. The value of this as a byte.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(UInt64 _other) Implements java. Compare two UInt32s. | |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract java. The value of this as a double.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object _o) Overrides java. Test two UInt64s for equality.
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract java. The value of this as a float.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract java. The value of this as a int.
| |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract java. The value of this as a long.
| |
| shortValue | back to summary |
|---|---|
| public short shortValue() Overrides java. The value of this as a short.
| |
| top | back to summary |
|---|---|
| public long top() Most significant 4 bytes.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. The value of this as a string. | |
| value | back to summary |
|---|---|
| public BigInteger value() The value of this as a BigInteger.
| |