java.lang.Object
io.github.mmm.base.config.ConfigOption<T>
- Type Parameters:
T- type of the value for this option. SeegetType().
Represents a single configuration option for a
ConfigMap. It is a simple container for the key using a generic type making the ConfigMap type-safe.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionConfigOption(String key, Class<T> type) The constructor.ConfigOption(String key, Class<T> type, T defaultValue) The constructor.ConfigOption(String key, T defaultValue) The constructor. -
Method Summary
-
Constructor Details
-
ConfigOption
The constructor. -
ConfigOption
The constructor.- Parameters:
key- thekey.defaultValue- thedefault value.
-
ConfigOption
The constructor.- Parameters:
key- thekey.type- thetype.defaultValue- thedefault value.
-
-
Method Details