Enum MainMenu.MainCommand

java.lang.Object
java.lang.Enum<MainMenu.MainCommand>
de.christofreichardt.jca.shamirsdemo.MainMenu.MainCommand
All Implemented Interfaces:
Menu.Command, Serializable, Comparable<MainMenu.MainCommand>, java.lang.constant.Constable
Enclosing class:
MainMenu

public static enum MainMenu.MainCommand
extends Enum<MainMenu.MainCommand>
implements Menu.Command
  • Enum Constant Details

  • Method Details

    • values

      public static MainMenu.MainCommand[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MainMenu.MainCommand valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getShortCut

      public String getShortCut()
      Specified by:
      getShortCut in interface Menu.Command
    • getFullName

      public String getFullName()
      Specified by:
      getFullName in interface Menu.Command
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Menu.Command