Class ConfigurationOptionHolder
java.lang.Object
cc.carm.lib.configuration.source.option.ConfigurationOptionHolder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> V
clear
(@NotNull ConfigurationOption<V> type) Set the value of option to option'sConfigurationOption.defaults()
.<V> V
get
(@NotNull ConfigurationOption<V> type) Get the value of option.static @NotNull ConfigurationOptionHolder
of
(@NotNull Map<ConfigurationOption<?>, Object> options) <V> V
set
(@NotNull ConfigurationOption<V> type, V value) Set the value of option.@NotNull Map
<ConfigurationOption<?>, Object> values()
-
Field Details
-
options
-
-
Constructor Details
-
ConfigurationOptionHolder
public ConfigurationOptionHolder() -
ConfigurationOptionHolder
-
-
Method Details
-
of
@NotNull public static @NotNull ConfigurationOptionHolder of(@NotNull @NotNull Map<ConfigurationOption<?>, Object> options) -
values
-
get
Get the value of option.- Type Parameters:
V
- Value type- Parameters:
type
-ConfigurationOption
- Returns:
- Value of option
-
set
Set the value of option.- Type Parameters:
V
- Value type- Parameters:
type
-ConfigurationOption
value
- Value of option- Returns:
- Previous value of option
-
clear
Set the value of option to option'sConfigurationOption.defaults()
.- Type Parameters:
V
- Value type- Parameters:
type
-ConfigurationOption
- Returns:
- Previous value of option
-