public class Int128 extends NumberType implements java.lang.Comparable<Int128>
Modifier and Type | Field and Description |
---|---|
static Int128 |
MAX_VALUE |
static Int128 |
MIN_VALUE |
Constructor and Description |
---|
Int128()
Initializes with the value 0
|
Int128(java.math.BigInteger bi)
Initializes with a BigInteger type
|
Int128(Int128 other)
Initializes with another Int128
|
Int128(java.lang.String str)
Initializes with a string value.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
bigIntegerValue()
Returns a BigInteger representation
|
byte |
byteValue() |
java.lang.Object |
clone() |
int |
compareTo(Int128 other) |
double |
doubleValue() |
boolean |
equals(java.lang.Object other) |
float |
floatValue() |
java.lang.String |
getCurrentValue()
Gets the current value in base 10
|
int |
hashCode() |
int |
intValue() |
long |
longValue() |
void |
setCurrentValue(java.lang.String newValue)
Sets the current value in base 10
|
short |
shortValue() |
java.lang.String |
toString() |
public static final Int128 MIN_VALUE
public static final Int128 MAX_VALUE
public Int128()
public Int128(java.lang.String str)
java.lang.NumberFormatException
- The argument is out of rangepublic Int128(java.math.BigInteger bi)
java.lang.NumberFormatException
- The argument is out of rangepublic Int128(Int128 other)
java.lang.NullPointerException
- When the argument is null.public java.lang.String getCurrentValue()
public void setCurrentValue(java.lang.String newValue)
public java.math.BigInteger bigIntegerValue()
bigIntegerValue
in class NumberType
public double doubleValue()
doubleValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public byte byteValue()
byteValue
in class java.lang.Number
public short shortValue()
shortValue
in class java.lang.Number
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Int128 other)
compareTo
in interface java.lang.Comparable<Int128>
public java.lang.Object clone()
clone
in class java.lang.Object