Class ConfigOptions.TypedConfigOptionBuilder<T>

java.lang.Object
ai.dat.core.configuration.ConfigOptions.TypedConfigOptionBuilder<T>
Type Parameters:
T - atomic type of the option
Enclosing class:
ConfigOptions

public static class ConfigOptions.TypedConfigOptionBuilder<T> extends Object
Builder for ConfigOption with a defined atomic type.
  • Method Details

    • asList

      Defines that the option's type should be a list of previously defined atomic type.
    • defaultValue

      public ConfigOption<T> defaultValue(T value)
      Creates a ConfigOption with the given default value.
      Parameters:
      value - The default value for the config option
      Returns:
      The config option with the default value.
    • noDefaultValue

      public ConfigOption<T> noDefaultValue()
      Creates a ConfigOption without a default value.
      Returns:
      The config option without a default value.