Class ConfigurationOption<V>

java.lang.Object
cc.carm.lib.configuration.source.option.ConfigurationOption<V>

public class ConfigurationOption<V> extends Object
  • Constructor Details

    • ConfigurationOption

      public ConfigurationOption(@NotNull V defaultValue)
  • Method Details

    • of

      public static <T> ConfigurationOption<T> of(@NotNull T defaultValue)
    • of

      public static <T> ConfigurationOption<T> of(@NotNull @NotNull 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)