public static class ConfigDef.LambdaValidator extends Object implements ConfigDef.Validator
| Modifier and Type | Method and Description |
|---|---|
void |
ensureValid(String name,
Object value)
Perform single configuration validation.
|
String |
toString() |
static ConfigDef.LambdaValidator |
with(BiConsumer<String,Object> ensureValid,
Supplier<String> toStringFunction) |
public static ConfigDef.LambdaValidator with(BiConsumer<String,Object> ensureValid, Supplier<String> toStringFunction)
public void ensureValid(String name, Object value)
ConfigDef.ValidatorensureValid in interface ConfigDef.Validatorname - The name of the configurationvalue - The value of the configuration