public class ValidEnum extends Object implements org.apache.kafka.common.config.ConfigDef.Validator
| Modifier and Type | Method and Description |
|---|---|
void |
ensureValid(String s,
Object o) |
static ValidEnum |
of(Class<?> enumClass,
String... excludes)
Method is used to create a new instance of the enum validator.
|
String |
toString() |
public static ValidEnum of(Class<?> enumClass, String... excludes)
enumClass - Enum class with the entries to validate for.excludes - Enum entries to exclude from the validator.public void ensureValid(String s, Object o)
ensureValid in interface org.apache.kafka.common.config.ConfigDef.ValidatorCopyright © 2016–2017. All rights reserved.