Interface EnumSetting<T extends EnumSetting.EnumValue>

Type Parameters:
T - The enum type.
All Superinterfaces:
Setting

public interface EnumSetting<T extends EnumSetting.EnumValue> extends Setting
Base enum setting class.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents a single value of an enum setting.
  • Method Summary

    Modifier and Type
    Method
    Description
    The default value of the setting.
    void
    setValue(T value)
    Sets the value of the setting.
    The current value of the setting.
    T[]
    All possible values of the setting.

    Methods inherited from interface Setting

    name, read, write
  • Method Details

    • value

      T value()
      The current value of the setting.
      Returns:
      The current value of the setting.
    • setValue

      void setValue(T value)
      Sets the value of the setting.
      Parameters:
      value - The new value of the setting.
    • defaultValue

      T defaultValue()
      The default value of the setting.
      Returns:
      The default value of the setting.
    • values

      T[] values()
      All possible values of the setting.
      Returns:
      All possible values of the setting.