Package sc2002.FCS1.grp2
Enum Class HDBOfficer.Menu
- All Implemented Interfaces:
Serializable,Comparable<HDBOfficer.Menu>,Constable,ScopedOption
- Enclosing class:
HDBOfficer
Possible menu options for a HDB Manager role
Each option listed here are options that only a HDB Manager can interact with.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HDBOfficer.MenufromOrdinal(int o) Get the menu value based on index.Use this method to get the option name to be printed in the menu.static HDBOfficer.MenuReturns the enum constant of this class with the specified name.static HDBOfficer.Menu[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VIEW_PROJECTS
-
JOIN_PROJECT
-
ENTER_ENQUIRIES_SYSTEM
-
CHECK_PENDING_PROJECT
-
BOOK_APPLICATION
-
VIEW_MY_APPLICATION
-
WITHDRAW_APPLICATION
-
-
Field Details
-
allMenuOptions
-
-
Constructor Details
-
Menu
private Menu()
-
-
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
-
getOptionName
Description copied from interface:ScopedOptionUse this method to get the option name to be printed in the menu.- Specified by:
getOptionNamein interfaceScopedOption- Returns:
- option name
-
fromOrdinal
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.
-