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