Enum Class CommandMode

java.lang.Object
java.lang.Enum<CommandMode>
commandManager.CommandMode
All Implemented Interfaces:
Serializable, Comparable<CommandMode>, Constable

public enum CommandMode extends Enum<CommandMode>
Contains information about mode of commands behavior
Since:
1.1
  • Enum Constant Details

    • CLI_UserMode

      public static final CommandMode CLI_UserMode
      Commands will use user-friendly interaction. Envisage that it will be used with System.in scanner
    • NonUserMode

      public static final CommandMode NonUserMode
      Commands will use simple interaction w/o user-orientation. Envisage that it will be used with file streams, e.t.c.
  • Method Details

    • values

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