@Deprecated public class ValidEnum extends Object implements org.apache.kafka.common.config.ConfigDef.Validator
Validators.validEnum(Class, Enum[])| Modifier and Type | Method and Description |
|---|---|
void |
ensureValid(String s,
Object o)
Deprecated.
|
static ValidEnum |
of(Class<?> enumClass,
String... excludes)
Deprecated.
Method is used to create a new INSTANCE of the enum validator.
|
String |
toString()
Deprecated.
|
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.Validators.validEnum(Class, Enum[])public void ensureValid(String s, Object o)
ensureValid in interface org.apache.kafka.common.config.ConfigDef.ValidatorCopyright © 2016–2025. All rights reserved.