Interface ConfigKey<T>

Type Parameters:
T - the value type
All Known Implementing Classes:
SimpleConfigKey

public interface ConfigKey<T>
Represents a key in the configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Resolves and returns the value mapped to this key using the given config instance.
    int
    Gets the position of this key within the keys enum.
    boolean
    Gets if the config key can be reloaded.
  • Method Details

    • ordinal

      int ordinal()
      Gets the position of this key within the keys enum.
      Returns:
      the position
    • reloadable

      boolean reloadable()
      Gets if the config key can be reloaded.
      Returns:
      the if the key can be reloaded
    • get

      T get(ConfigurationAdapter adapter)
      Resolves and returns the value mapped to this key using the given config instance.
      Parameters:
      adapter - the config adapter instance
      Returns:
      the value mapped to this key