Enum Class HDBOfficer.Menu

All Implemented Interfaces:
Serializable, Comparable<HDBOfficer.Menu>, Constable, ScopedOption
Enclosing class:
HDBOfficer

static enum HDBOfficer.Menu extends Enum<HDBOfficer.Menu> implements ScopedOption
Possible menu options for a HDB Manager role Each option listed here are options that only a HDB Manager can interact with.
  • Enum Constant Details

    • VIEW_PROJECTS

      public static final HDBOfficer.Menu VIEW_PROJECTS
    • JOIN_PROJECT

      public static final HDBOfficer.Menu JOIN_PROJECT
    • ENTER_ENQUIRIES_SYSTEM

      public static final HDBOfficer.Menu ENTER_ENQUIRIES_SYSTEM
    • CHECK_PENDING_PROJECT

      public static final HDBOfficer.Menu CHECK_PENDING_PROJECT
    • BOOK_APPLICATION

      public static final HDBOfficer.Menu BOOK_APPLICATION
    • VIEW_MY_APPLICATION

      public static final HDBOfficer.Menu VIEW_MY_APPLICATION
    • WITHDRAW_APPLICATION

      public static final HDBOfficer.Menu WITHDRAW_APPLICATION
  • Field Details

  • Constructor Details

    • Menu

      private Menu()
  • Method Details

    • values

      public static HDBOfficer.Menu[] 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 HDBOfficer.Menu 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
    • getOptionName

      public String getOptionName()
      Description copied from interface: ScopedOption
      Use this method to get the option name to be printed in the menu.
      Specified by:
      getOptionName in interface ScopedOption
      Returns:
      option name
    • fromOrdinal

      public static HDBOfficer.Menu fromOrdinal(int o)
      Get the menu value based on index. Each enum value starts from 0..size of enum values.
      Parameters:
      o - Index expected of the option
      Returns:
      the menu enum value.