Package api.mpba.rastvdmy.entity.enums
Enum Class FinancialStatus
- All Implemented Interfaces:
Serializable
,Comparable<FinancialStatus>
,Constable
This enum represents the financial status.
It contains the statuses - RECEIVED and DENIED.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns the status of the financial transaction as a string.static FinancialStatus
Returns the enum constant of this class with the specified name.static FinancialStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RECEIVED
Represents the status when a financial transaction is received. -
DENIED
Represents the status when a financial transaction is denied.
-
-
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
-
toString
Returns the status of the financial transaction as a string.- Overrides:
toString
in classEnum<FinancialStatus>
- Returns:
- The status of the financial transaction.
-