Package nxt

Enum AccountLedger.LedgerHolding

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AccountLedger.LedgerHolding>
    Enclosing class:
    AccountLedger

    public static enum AccountLedger.LedgerHolding
    extends java.lang.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.
    • Method Detail

      • values

        public static AccountLedger.LedgerHolding[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AccountLedger.LedgerHolding c : AccountLedger.LedgerHolding.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AccountLedger.LedgerHolding valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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
      • fromCode

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