Enum Class ArgumentPriority

java.lang.Object
java.lang.Enum<ArgumentPriority>
me.efekos.simpler.commands.syntax.ArgumentPriority
All Implemented Interfaces:
Serializable, Comparable<ArgumentPriority>, Constable

public enum ArgumentPriority extends Enum<ArgumentPriority>
Used to provide a priority for Arguments.
  • Enum Constant Details

    • REQUIRED

      public static final ArgumentPriority REQUIRED
      Means that this argument is required. A ConsoleCommandSender or a Player will have to provide an argument for Arguments with this priority.
    • OPTIONAL

      public static final ArgumentPriority OPTIONAL
      Means that this argument is optional. A ConsoleCommandSender or a Player may not provide an argument for Arguments with this priority.
  • Method Details

    • values

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