public class UnsignedInteger64 extends Object
| Modifier and Type | Field and Description |
|---|---|
static BigInteger |
MAX_VALUE |
static BigInteger |
MIN_VALUE |
| Constructor and Description |
|---|
UnsignedInteger64(BigInteger input)
Creates a new UnsignedInteger64 object.
|
UnsignedInteger64(byte[] bval)
Creates a new UnsignedInteger64 object.
|
UnsignedInteger64(long value) |
UnsignedInteger64(String sval)
Creates a new UnsignedInteger64 object.
|
| Modifier and Type | Method and Description |
|---|---|
static UnsignedInteger64 |
add(UnsignedInteger64 x,
int y)
Add an unsigned integer to an int.
|
static UnsignedInteger64 |
add(UnsignedInteger64 x,
UnsignedInteger64 y)
Add an unsigned integer to another unsigned integer.
|
BigInteger |
bigIntValue()
Return a BigInteger value of the unsigned integer.
|
boolean |
equals(Object o)
Compares this unsigned integer to an object.
|
int |
hashCode()
Return the objects hash code.
|
long |
longValue()
Return a long value of the unsigned integer.
|
byte[] |
toByteArray()
Returns a byte array encoded with the unsigned integer.
|
String |
toString()
Return a String representation of the unsigned integer
|
public static final BigInteger MAX_VALUE
public static final BigInteger MIN_VALUE
public UnsignedInteger64(String sval) throws NumberFormatException
sval - NumberFormatExceptionpublic UnsignedInteger64(byte[] bval)
throws NumberFormatException
bval - NumberFormatExceptionpublic UnsignedInteger64(long value)
public UnsignedInteger64(BigInteger input)
input - NumberFormatExceptionpublic boolean equals(Object o)
public BigInteger bigIntValue()
public long longValue()
public String toString()
public int hashCode()
public static UnsignedInteger64 add(UnsignedInteger64 x, UnsignedInteger64 y)
x - y - public static UnsignedInteger64 add(UnsignedInteger64 x, int y)
x - y - public byte[] toByteArray()
Copyright © 2025. All rights reserved.