public static class ConfigDef.Range extends java.lang.Object implements ConfigDef.Validator
Modifier and Type | Method and Description |
---|---|
static ConfigDef.Range |
atLeast(java.lang.Number min)
A numeric range that checks only the lower bound
|
static ConfigDef.Range |
between(java.lang.Number min,
java.lang.Number max)
A numeric range that checks both the upper and lower bound
|
void |
ensureValid(java.lang.String name,
java.lang.Object o)
Perform single configuration validation.
|
java.lang.String |
toString() |
public static ConfigDef.Range atLeast(java.lang.Number min)
min
- The minimum acceptable valuepublic static ConfigDef.Range between(java.lang.Number min, java.lang.Number max)
public void ensureValid(java.lang.String name, java.lang.Object o)
ConfigDef.Validator
ensureValid
in interface ConfigDef.Validator
name
- The name of the configurationo
- The value of the configurationpublic java.lang.String toString()
toString
in class java.lang.Object