Enum Class RequestType

java.lang.Object
java.lang.Enum<RequestType>
entity.request.RequestType
All Implemented Interfaces:
Serializable, Comparable<RequestType>, Constable

public enum RequestType extends Enum<RequestType>
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 Constants
    Enum Constant
    Description
    Represents 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static RequestType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BTO_APPLICATION

      public static final RequestType BTO_APPLICATION
      Represents a request submitted by an applicant to apply for a Build-To-Order (BTO) housing project. Typically associated with the BTOApplication class.
    • BTO_WITHDRAWAL

      public static final RequestType BTO_WITHDRAWAL
      Represents a request submitted by an applicant to withdraw a previously submitted BTO application. Typically associated with the BTOWithdrawal class.
    • REGISTRATION

      public static final RequestType REGISTRATION
      Represents a request submitted by an officer to register for assignment to a specific project. Typically associated with the OfficerRegistration class.
    • ENQUIRY

      public static final RequestType ENQUIRY
      Represents a request submitted by a user (e.g., applicant) asking a question or seeking information, usually about a project. Typically associated with the Enquiry class.
    • NONE

      public static final RequestType 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

      public static RequestType[] 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 RequestType 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