public static final class ConfigOptions.OptionBuilder extends Object
ConfigOption. It is instantiated via ConfigOptions.key(String).| 限定符和类型 | 方法和说明 |
|---|---|
ConfigOptions.TypedConfigOptionBuilder<Boolean> |
booleanType()
Defines that the value of the option should be of
Boolean type. |
ConfigOptions.TypedConfigOptionBuilder<Double> |
doubleType()
Defines that the value of the option should be of
Double type. |
ConfigOptions.TypedConfigOptionBuilder<java.time.Duration> |
durationType()
Defines that the value of the option should be of
Duration type. |
<T extends Enum<T>> |
enumType(Class<T> enumClass)
Defines that the value of the option should be of
Enum type. |
ConfigOptions.TypedConfigOptionBuilder<Float> |
floatType()
Defines that the value of the option should be of
Float type. |
ConfigOptions.TypedConfigOptionBuilder<Integer> |
intType()
Defines that the value of the option should be of
Integer type. |
ConfigOptions.TypedConfigOptionBuilder<Long> |
longType()
Defines that the value of the option should be of
Long type. |
ConfigOptions.TypedConfigOptionBuilder<Map<String,String>> |
mapType()
Defines that the value of the option should be a set of properties, which can be
represented as
Map<String, String>. |
ConfigOptions.TypedConfigOptionBuilder<String> |
stringType()
Defines that the value of the option should be of
String type. |
public ConfigOptions.TypedConfigOptionBuilder<Boolean> booleanType()
Boolean type.public ConfigOptions.TypedConfigOptionBuilder<Integer> intType()
Integer type.public ConfigOptions.TypedConfigOptionBuilder<Long> longType()
Long type.public ConfigOptions.TypedConfigOptionBuilder<Float> floatType()
Float type.public ConfigOptions.TypedConfigOptionBuilder<Double> doubleType()
Double type.public ConfigOptions.TypedConfigOptionBuilder<String> stringType()
String type.public ConfigOptions.TypedConfigOptionBuilder<java.time.Duration> durationType()
Duration type.public <T extends Enum<T>> ConfigOptions.TypedConfigOptionBuilder<T> enumType(Class<T> enumClass)
Enum type.enumClass - Concrete type of the expected enum.public ConfigOptions.TypedConfigOptionBuilder<Map<String,String>> mapType()
Map<String, String>.Copyright © 2025 The Apache Software Foundation. All rights reserved.