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 TypeMethodDescriptionget(ConfigurationAdapter adapter) Resolves and returns the value mapped to this key using the given config instance.intordinal()Gets the position of this key within the keys enum.booleanGets 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
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
-