public static final class ConfigOptions.OptionBuilder extends Object
ConfigOption
.
It is instantiated via ConfigOptions.key(String)
.Modifier and Type | Method and Description |
---|---|
<T> ConfigOption<T> |
defaultValue(T value)
Creates a ConfigOption with the given default value.
|
ConfigOption<String> |
noDefaultValue()
Creates a string-valued option with no default value.
|
public <T> ConfigOption<T> defaultValue(T value)
This method does not accept "null". For options with no default value, choose
one of the noDefaultValue
methods.
T
- The type of the default value.value
- The default value for the config optionpublic ConfigOption<String> noDefaultValue()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.