Package sc2002.FCS1.grp2
Enum Class ApplicationStatus
- All Implemented Interfaces:
Serializable,Comparable<ApplicationStatus>,Constable
The status of an application.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen application is confirmed and booked by an officer.The initial status; When an applicant applies, this is the status, as it awaits approval from authorised personnel.This status occurs when an authorised personnel has approved the application; awaiting booking.This status occurs when an authorised personnel decides this application shall be unsuccessful, such as when there are no slots left, over booking. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationStatusfromString(String value) toString()static ApplicationStatusReturns the enum constant of this class with the specified name.static ApplicationStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
The initial status; When an applicant applies, this is the status, as it awaits approval from authorised personnel. -
SUCCESSFUL
This status occurs when an authorised personnel has approved the application; awaiting booking. -
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
When application is confirmed and booked by an officer. In this state, a receipt can be generated.
-
-
Field Details
-
value
-
-
Constructor Details
-
ApplicationStatus
-
-
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
- Overrides:
toStringin classEnum<ApplicationStatus>
-
fromString
-