Interface Setting<T>

Type Parameters:
T - The type of the values associated with this setting.

public interface Setting<T>
Settings that can be provided in configurations are represented by instances of this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    The default value of this setting
    A textual representation describing the usage if this setting
    boolean
    A dynamic setting have its value changed in a config at any time
    The full (unique) name, identifying a specific setting.
  • Method Details

    • name

      String name()
      The full (unique) name, identifying a specific setting.
      Returns:
      the name.
    • defaultValue

      T defaultValue()
      The default value of this setting
      Returns:
      the typed default value.
    • dynamic

      boolean dynamic()
      A dynamic setting have its value changed in a config at any time
      Returns:
      true if the setting is dynamic, false otherwise
    • description

      String description()
      A textual representation describing the usage if this setting
      Returns:
      the description of this setting