public class AccountIndex extends U32
A wrapper around an AccountIndex, which is a shortened, variable-length encoding for an Account. We extends from U32
to provide the number-like properties.
Modifier and Type | Field and Description |
---|---|
static java.math.BigInteger |
ENUMSET_SIZE |
static java.math.BigInteger |
MAX_1BYTE |
static java.math.BigInteger |
MAX_2BYTE |
static java.math.BigInteger |
MAX_4BYTE |
static byte |
PREFIX_1BYTE |
static byte |
PREFIX_2BYTE |
static byte |
PREFIX_4BYTE |
static byte |
PREFIX_8BYTE |
Constructor and Description |
---|
AccountIndex(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
eq(java.lang.Object other)
Compares the value of the input to see if there is a match
|
java.lang.Object |
toJson()
Converts the Object to JSON, typically used for RPC transfers
|
java.lang.String |
toString()
Returns the string representation of the value
|
bitLength, getEncodedLength, isEmpty, toBn
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, valueOf, xor
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bitLength, toBn
getConstructorCodec, getEncodedLength, isEmpty, toU8a
public static final java.math.BigInteger ENUMSET_SIZE
public static final byte PREFIX_1BYTE
public static final byte PREFIX_2BYTE
public static final byte PREFIX_4BYTE
public static final byte PREFIX_8BYTE
public static final java.math.BigInteger MAX_1BYTE
public static final java.math.BigInteger MAX_2BYTE
public static final java.math.BigInteger MAX_4BYTE
public boolean eq(java.lang.Object other)
Compares the value of the input to see if there is a match
eq
in interface Codec
eq
in class AbstractInt
public java.lang.Object toJson()
Converts the Object to JSON, typically used for RPC transfers
toJson
in interface Codec
toJson
in class AbstractInt
public java.lang.String toString()
Returns the string representation of the value
toString
in class java.math.BigInteger