public static class ConfigDef.ValidString extends Object implements ConfigDef.Validator
Modifier and Type | Method and Description |
---|---|
void |
ensureValid(String name,
Object o)
Perform single configuration validation.
|
static ConfigDef.ValidString |
in(String... validStrings) |
String |
toString() |
public static ConfigDef.ValidString in(String... validStrings)
public void ensureValid(String name, Object o)
ConfigDef.Validator
ensureValid
in interface ConfigDef.Validator
name
- The name of the configurationo
- The value of the configuration