Package nxt.account

Enum Class HoldingType

java.lang.Object
java.lang.Enum<HoldingType>
nxt.account.HoldingType
All Implemented Interfaces:
Serializable, Comparable<HoldingType>, Constable

public enum HoldingType extends Enum<HoldingType>
  • Enum Constant Details

  • Method Details

    • values

      public static HoldingType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HoldingType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static HoldingType get(byte code)
    • getCode

      public byte getCode()
    • getDecimals

      public abstract int getDecimals(long holdingId)
    • getBalance

      public abstract long getBalance(Account account, long holdingId)
    • getUnconfirmedBalance

      public abstract long getUnconfirmedBalance(Account account, long holdingId)
    • addToBalance

      public abstract void addToBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)
    • addToUnconfirmedBalance

      public abstract void addToUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)
    • addToBalanceAndUnconfirmedBalance

      public abstract void addToBalanceAndUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)