Package ai.dat.core.configuration
Class ConfigOptions.OptionBuilder
java.lang.Object
ai.dat.core.configuration.ConfigOptions.OptionBuilder
- Enclosing class:
- ConfigOptions
The option builder is used to create a
ConfigOption. It is instantiated via ConfigOptions.key(String).-
Method Summary
Modifier and TypeMethodDescriptionDefines that the value of the option should be ofBooleantype.Defines that the value of the option should be ofDoubletype.Defines that the value of the option should be ofDurationtype.<T extends Enum<T>>
ConfigOptions.TypedConfigOptionBuilder<T>Defines that the value of the option should be ofEnumtype.Defines that the value of the option should be ofFloattype.intType()Defines that the value of the option should be ofIntegertype.longType()Defines that the value of the option should be ofLongtype.Defines that the value of the option should be a set of properties, which can be represented asMap<String, Object>.mapType()Defines that the value of the option should be a set of properties, which can be represented asMap<String, String>.Defines that the value of the option should be ofMemorySizetype.Defines that the value of the option should be ofStringtype.
-
Method Details
-
booleanType
Defines that the value of the option should be ofBooleantype. -
intType
Defines that the value of the option should be ofIntegertype. -
longType
Defines that the value of the option should be ofLongtype. -
floatType
Defines that the value of the option should be ofFloattype. -
doubleType
Defines that the value of the option should be ofDoubletype. -
stringType
Defines that the value of the option should be ofStringtype. -
durationType
Defines that the value of the option should be ofDurationtype. -
memoryType
Defines that the value of the option should be ofMemorySizetype. -
enumType
Defines that the value of the option should be ofEnumtype.- Parameters:
enumClass- Concrete type of the expected enum.
-
mapType
Defines that the value of the option should be a set of properties, which can be represented asMap<String, String>. -
mapObjectType
Defines that the value of the option should be a set of properties, which can be represented asMap<String, Object>.
-