Enum Class IntOption

java.lang.Object
java.lang.Enum<IntOption>
dev.despical.whackme.option.IntOption
All Implemented Interfaces:
ConfigOption<Integer>, Serializable, Comparable<IntOption>, Constable

public enum IntOption extends Enum<IntOption> implements ConfigOption<Integer>
  • Enum Constant Details

    • GAMEPLAY_TIME

      public static final IntOption GAMEPLAY_TIME
    • GAME_COOLDOWN

      public static final IntOption GAME_COOLDOWN
  • Method Details

    • values

      public static IntOption[] 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 IntOption 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
    • getPath

      public String getPath()
      Specified by:
      getPath in interface ConfigOption<Integer>
    • getType

      public Class<Integer> getType()
      Specified by:
      getType in interface ConfigOption<Integer>
    • getDefaultValue

      public Integer getDefaultValue()
      Specified by:
      getDefaultValue in interface ConfigOption<Integer>