Interface ConfigKeyFactory<T>
public interface ConfigKeyFactory<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigKeyFactory<Boolean> static final ConfigKeyFactory<String> static final ConfigKeyFactory<String> static final ConfigKeyFactory<List<String>> static final ConfigKeyFactory<Map<String, String>> -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleConfigKey<Boolean> booleanKey(String path, boolean def) getValue(ConfigurationAdapter config, String path, T def) Extracts the value from the config.static <T> SimpleConfigKey<T> key(Function<ConfigurationAdapter, T> function) static SimpleConfigKey<String> lowercaseStringKey(String path, String def) static SimpleConfigKey<Map<String, String>> static <T> SimpleConfigKey<T> notReloadable(SimpleConfigKey<T> key) static SimpleConfigKey<String> static SimpleConfigKey<List<String>> stringListKey(String path, List<String> def)
-
Field Details
-
BOOLEAN
-
STRING
-
STRING_LIST
-
LOWERCASE_STRING
-
STRING_MAP
-
-
Method Details
-
key
-
notReloadable
-
booleanKey
-
stringKey
-
stringListKey
-
lowercaseStringKey
-
mapKey
-
getValue
Extracts the value from the config.- Parameters:
config- the configpath- the path where the value isdef- the default value- Returns:
- the value
-