Package nxt.account

Enum Class AccountLedger.LedgerHolding

java.lang.Object
java.lang.Enum<AccountLedger.LedgerHolding>
nxt.account.AccountLedger.LedgerHolding
All Implemented Interfaces:
Serializable, Comparable<AccountLedger.LedgerHolding>, Constable
Enclosing class:
AccountLedger

public static enum AccountLedger.LedgerHolding extends Enum<AccountLedger.LedgerHolding>
Ledger holdings When adding a new holding, do not change the existing code assignments since they are stored in the holding_type field of the account_ledger table.
  • Enum Constant Details

  • Method Details

    • values

      public static AccountLedger.LedgerHolding[] 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 AccountLedger.LedgerHolding 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
    • isUnconfirmed

      public boolean isUnconfirmed()
      Check if the holding is unconfirmed
      Returns:
      TRUE if the holding is unconfirmed
    • getCode

      public int getCode()
      Return the holding code
      Returns:
      Holding code
    • getHoldingType

      public abstract HoldingType getHoldingType()
      The HoldingType for this LedgerHolding
      Returns:
      HoldingType
    • fromCode

      public static AccountLedger.LedgerHolding fromCode(int code)
      Get the holding from the holding code
      Parameters:
      code - Holding code
      Returns:
      Holding