Class AccountIndex

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.math.BigInteger>, Codec, Compactable

    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.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AccountIndex​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method 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
      • Methods inherited from class java.math.BigInteger

        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, sqrt, sqrtAndRemainder, subtract, testBit, toByteArray, toString, valueOf, xor
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ENUMSET_SIZE

        public static final java.math.BigInteger ENUMSET_SIZE
      • PREFIX_1BYTE

        public static final byte PREFIX_1BYTE
      • PREFIX_2BYTE

        public static final byte PREFIX_2BYTE
      • PREFIX_4BYTE

        public static final byte PREFIX_4BYTE
      • PREFIX_8BYTE

        public static final byte PREFIX_8BYTE
      • MAX_1BYTE

        public static final java.math.BigInteger MAX_1BYTE
      • MAX_2BYTE

        public static final java.math.BigInteger MAX_2BYTE
      • MAX_4BYTE

        public static final java.math.BigInteger MAX_4BYTE
    • Constructor Detail

      • AccountIndex

        public AccountIndex​(java.lang.Object value)
    • Method Detail

      • eq

        public boolean eq​(java.lang.Object other)
        Compares the value of the input to see if there is a match
        Specified by:
        eq in interface Codec
        Overrides:
        eq in class AbstractInt
      • toJson

        public java.lang.Object toJson()
        Converts the Object to JSON, typically used for RPC transfers
        Specified by:
        toJson in interface Codec
        Overrides:
        toJson in class AbstractInt
      • toString

        public java.lang.String toString()
        Returns the string representation of the value
        Overrides:
        toString in class java.math.BigInteger