public class UnsignedInteger64
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigInteger |
MAX_VALUE |
static java.math.BigInteger |
MIN_VALUE |
| Constructor and Description |
|---|
UnsignedInteger64(java.math.BigInteger input)
Creates a new UnsignedInteger64 object.
|
UnsignedInteger64(byte[] bval)
Creates a new UnsignedInteger64 object.
|
UnsignedInteger64(long value) |
UnsignedInteger64(java.lang.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.
|
java.math.BigInteger |
bigIntValue()
Return a BigInteger value of the unsigned integer.
|
boolean |
equals(java.lang.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.
|
java.lang.String |
toString()
Return a String representation of the unsigned integer
|
public static final java.math.BigInteger MAX_VALUE
public static final java.math.BigInteger MIN_VALUE
public UnsignedInteger64(java.lang.String sval)
throws java.lang.NumberFormatException
sval - java.lang.NumberFormatExceptionpublic UnsignedInteger64(byte[] bval)
throws java.lang.NumberFormatException
bval - java.lang.NumberFormatExceptionpublic UnsignedInteger64(long value)
public UnsignedInteger64(java.math.BigInteger input)
input - java.lang.NumberFormatExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - public java.math.BigInteger bigIntValue()
public long longValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static UnsignedInteger64 add(UnsignedInteger64 x, UnsignedInteger64 y)
x - y - public static UnsignedInteger64 add(UnsignedInteger64 x, int y)
x - y - public byte[] toByteArray()
Copyright © 2022. All rights reserved.