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
The outcome of a balance change.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplied, but aCurrencyChangeEventlistener changed the resulting balance.Applied as requested; a withdrawal or set that would go below zero is clamped at zero.ACurrencyChangeEventlistener cancelled it; nothing changed.Storage refused the change; nothing changed.A withdrawal larger than the balance; nothing changed and no event was fired.The amount was negative, zero where that is meaningless, or not a finite number.Currency storage is unavailable or shutting down; nothing changed. -
Method Summary
Modifier and TypeMethodDescriptionstatic CurrencyTransaction.StatusReturns the enum constant of this class with the specified name.static CurrencyTransaction.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLIED
Applied as requested; a withdrawal or set that would go below zero is clamped at zero. -
ADJUSTED
Applied, but aCurrencyChangeEventlistener changed the resulting balance. -
CANCELLED
ACurrencyChangeEventlistener cancelled it; nothing changed. -
INSUFFICIENT_FUNDS
A withdrawal larger than the balance; nothing changed and no event was fired. -
INVALID_AMOUNT
The amount was negative, zero where that is meaningless, or not a finite number. -
UNAVAILABLE
Currency storage is unavailable or shutting down; nothing changed. -
FAILED
Storage refused the change; nothing changed.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-