Enum Class CurrencyTransaction.Status

java.lang.Object
java.lang.Enum<CurrencyTransaction.Status>
dev.itsharshxd.zentrix.api.currency.CurrencyTransaction.Status
All Implemented Interfaces:
Serializable, Comparable<CurrencyTransaction.Status>, Constable
Enclosing class:
CurrencyTransaction

public static enum CurrencyTransaction.Status extends Enum<CurrencyTransaction.Status>
The outcome of a balance change.
  • Enum Constant Details

    • APPLIED

      public static final CurrencyTransaction.Status APPLIED
      Applied as requested; a withdrawal or set that would go below zero is clamped at zero.
    • ADJUSTED

      public static final CurrencyTransaction.Status ADJUSTED
      Applied, but a CurrencyChangeEvent listener changed the resulting balance.
    • CANCELLED

      public static final CurrencyTransaction.Status CANCELLED
      A CurrencyChangeEvent listener cancelled it; nothing changed.
    • INSUFFICIENT_FUNDS

      public static final CurrencyTransaction.Status INSUFFICIENT_FUNDS
      A withdrawal larger than the balance; nothing changed and no event was fired.
    • INVALID_AMOUNT

      public static final CurrencyTransaction.Status INVALID_AMOUNT
      The amount was negative, zero where that is meaningless, or not a finite number.
    • UNAVAILABLE

      public static final CurrencyTransaction.Status UNAVAILABLE
      Currency storage is unavailable or shutting down; nothing changed.
    • FAILED

      public static final CurrencyTransaction.Status FAILED
      Storage refused the change; nothing changed.
  • Method Details

    • values

      public static CurrencyTransaction.Status[] 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 CurrencyTransaction.Status 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