Enum Class Metrics.Tag.Type

java.lang.Object
java.lang.Enum<Metrics.Tag.Type>
dev.sympho.modular_commands.execute.Metrics.Tag.Type
All Implemented Interfaces:
Metrics.Tag, Serializable, Comparable<Metrics.Tag.Type>, Constable
Enclosing interface:
Metrics.Tag

public static enum Metrics.Tag.Type extends Enum<Metrics.Tag.Type> implements Metrics.Tag
The tag that indicates the command type.
Since:
1.0
  • Enum Constant Details

    • MESSAGE

      public static final Metrics.Tag.Type MESSAGE
      A message-based command.
    • SLASH

      public static final Metrics.Tag.Type SLASH
      A slash command-based command.
  • Method Details

    • values

      public static Metrics.Tag.Type[] 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 Metrics.Tag.Type 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
    • key

      public String key()
      Description copied from interface: Metrics.Tag
      Retrieves the tag key.
      Specified by:
      key in interface Metrics.Tag
      Returns:
      The tag key.
    • value

      public String value()
      Description copied from interface: Metrics.Tag
      Retrieves the tag value.
      Specified by:
      value in interface Metrics.Tag
      Returns:
      The tag value.