Enum Class RequestType
- All Implemented Interfaces:
Serializable,Comparable<RequestType>,Constable
Defines the different categories or types of requests that can be initiated
and processed within the housing application system.
This helps differentiate the purpose and handling logic for various requests.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a request submitted by an applicant to apply for a Build-To-Order (BTO) housing project.Represents a request submitted by an applicant to withdraw a previously submitted BTO application.Represents a request submitted by a user (e.g., applicant) asking a question or seeking information, usually about a project.Represents an unspecified, default, or null request type.Represents a request submitted by an officer to register for assignment to a specific project. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestTypeReturns the enum constant of this class with the specified name.static RequestType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BTO_APPLICATION
Represents a request submitted by an applicant to apply for a Build-To-Order (BTO) housing project. Typically associated with theBTOApplicationclass. -
BTO_WITHDRAWAL
Represents a request submitted by an applicant to withdraw a previously submitted BTO application. Typically associated with theBTOWithdrawalclass. -
REGISTRATION
Represents a request submitted by an officer to register for assignment to a specific project. Typically associated with theOfficerRegistrationclass. -
ENQUIRY
Represents a request submitted by a user (e.g., applicant) asking a question or seeking information, usually about a project. Typically associated with theEnquiryclass. -
NONE
Represents an unspecified, default, or null request type. May be used for initialization or to indicate an absence of a specific request type.
-
-
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
-