Enum Class Applicant.Menu

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

static enum Applicant.Menu extends Enum<Applicant.Menu> implements ScopedOption
Applicant-specific menu options
  • Enum Constant Details

    • VIEW_PROJECTS

      public static final Applicant.Menu VIEW_PROJECTS
    • VIEW_ENQUIRIES

      public static final Applicant.Menu VIEW_ENQUIRIES
    • VIEW_APPLICATIONS

      public static final Applicant.Menu VIEW_APPLICATIONS
    • WITHDRAW_APPLICATION

      public static final Applicant.Menu WITHDRAW_APPLICATION
  • Field Details

    • optionName

      private final String optionName
    • allMenuOptions

      public static Applicant.Menu[] allMenuOptions
  • Constructor Details

    • Menu

      private Menu(String optionName)
  • Method Details

    • values

      public static Applicant.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 Applicant.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 Applicant.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.