Class ConfigurationOptionHolder
java.lang.Object
cc.carm.lib.configuration.source.option.ConfigurationOptionHolder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Vclear(@NotNull ConfigurationOption<V> type) Set the value of option to option'sConfigurationOption.defaults().<V> Vget(@NotNull ConfigurationOption<V> type) Get the value of option.static @NotNull ConfigurationOptionHolderof(@NotNull Map<ConfigurationOption<?>, Object> options) <V> Vset(@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-ConfigurationOptionvalue- 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
-