public abstract class AbstractInt extends java.math.BigInteger implements Codec
| Constructor and Description |
|---|
AbstractInt(boolean isNegative,
java.lang.Object value,
int bitLength,
boolean isHexJson) |
| Modifier and Type | Method and Description |
|---|---|
int |
bitLength()
Returns the number of bits in the value
|
boolean |
eq(java.lang.Object other)
Compares the value of the input to see if there is a match
|
int |
getEncodedLength()
The length of the value when encoded as a Uint8Array
|
boolean |
isEmpty()
Checks if the value is a zero value (align elsewhere)
|
java.math.BigInteger |
toBn()
Returns the BN representation of the number.
|
abstract java.lang.String |
toHex()
Returns a hex string representation of the value
|
java.lang.Object |
toJson()
Converts the Object to JSON, typically used for RPC transfers
|
abstract byte[] |
toU8a(boolean isBare) |
abs, add, and, andNot, bitCount, byteValueExact, clearBit, compareTo, divide, divideAndRemainder, doubleValue, equals, flipBit, floatValue, gcd, getLowestSetBit, hashCode, intValue, intValueExact, isProbablePrime, longValue, longValueExact, max, min, mod, modInverse, modPow, multiply, negate, nextProbablePrime, not, or, pow, probablePrime, remainder, setBit, shiftLeft, shiftRight, shortValueExact, signum, subtract, testBit, toByteArray, toString, toString, valueOf, xorclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetConstructorCodec, toU8apublic AbstractInt(boolean isNegative,
java.lang.Object value,
int bitLength,
boolean isHexJson)
public int getEncodedLength()
The length of the value when encoded as a Uint8Array
getEncodedLength in interface Codecpublic boolean isEmpty()
Checks if the value is a zero value (align elsewhere)
public int bitLength()
Returns the number of bits in the value
bitLength in class java.math.BigIntegerpublic boolean eq(java.lang.Object other)
Compares the value of the input to see if there is a match
public java.math.BigInteger toBn()
Returns the BN representation of the number. (Compatibility)
public abstract java.lang.String toHex()
Returns a hex string representation of the value
public java.lang.Object toJson()
Converts the Object to JSON, typically used for RPC transfers