Enum Class FinancialStatus

java.lang.Object
java.lang.Enum<FinancialStatus>
api.mpba.rastvdmy.entity.enums.FinancialStatus
All Implemented Interfaces:
Serializable, Comparable<FinancialStatus>, Constable

public enum FinancialStatus extends Enum<FinancialStatus>
This enum represents the financial status. It contains the statuses - RECEIVED and DENIED.
  • Enum Constant Details

    • RECEIVED

      public static final FinancialStatus RECEIVED
      Represents the status when a financial transaction is received.
    • DENIED

      public static final FinancialStatus DENIED
      Represents the status when a financial transaction is denied.
  • Method Details

    • values

      public static FinancialStatus[] 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 FinancialStatus 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
    • toString

      public String toString()
      Returns the status of the financial transaction as a string.
      Overrides:
      toString in class Enum<FinancialStatus>
      Returns:
      The status of the financial transaction.