Enum Class ApplicationStatus

Object
Enum<ApplicationStatus>
ApplicationStatus
All Implemented Interfaces:
Serializable, Comparable<ApplicationStatus>, Constable

public enum ApplicationStatus extends Enum<ApplicationStatus>
The status of an application.
  • Enum Constant Details

    • PENDING

      public static final ApplicationStatus PENDING
      The initial status; When an applicant applies, this is the status, as it awaits approval from authorised personnel.
    • SUCCESSFUL

      public static final ApplicationStatus SUCCESSFUL
      This status occurs when an authorised personnel has approved the application; awaiting booking.
    • UNSUCCESSFUL

      public static final ApplicationStatus UNSUCCESSFUL
      This status occurs when an authorised personnel decides this application shall be unsuccessful, such as when there are no slots left, over booking.
    • BOOKED

      public static final ApplicationStatus BOOKED
      When application is confirmed and booked by an officer. In this state, a receipt can be generated.
  • Field Details

    • value

      private String value
  • Constructor Details

    • ApplicationStatus

      private ApplicationStatus(String value)
  • Method Details

    • values

      public static ApplicationStatus[] 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 ApplicationStatus 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()
      Overrides:
      toString in class Enum<ApplicationStatus>
    • fromString

      public static ApplicationStatus fromString(String value)