Class ConfigurationOption<V>
- java.lang.Object
-
- cc.carm.lib.configuration.source.option.ConfigurationOption<V>
-
public class ConfigurationOption<V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigurationOption(V defaultValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description V
defaults()
void
defaults(V defaultValue)
Set the default value of option.boolean
isDefault(V value)
static <T> ConfigurationOption<T>
of(@NotNull java.util.function.Supplier<T> defaultValue)
static <T> ConfigurationOption<T>
of(T defaultValue)
-
-
-
Constructor Detail
-
ConfigurationOption
public ConfigurationOption(@NotNull V defaultValue)
-
-
Method Detail
-
of
public static <T> ConfigurationOption<T> of(@NotNull T defaultValue)
-
of
public static <T> ConfigurationOption<T> of(@NotNull @NotNull java.util.function.Supplier<T> defaultValue)
-
defaults
@NotNull public V defaults()
-
defaults
public void defaults(@NotNull V defaultValue)
Set the default value of option.- Parameters:
defaultValue
- Default value
-
isDefault
public boolean isDefault(@NotNull V value)
-
-