Interface ConfigEntry.ITestValue<T>
- Type Parameters:
T- The type of the value.
- Enclosing class:
ConfigEntry<V>
public static interface ConfigEntry.ITestValue<T>
Interface that can be used to verify config values.
-
Method Summary
-
Method Details
-
test
Checks if a given value is valid. If it is, it returns that value. If it isn't, it is changed so that it is valid.For example to check if a value doesn't exceed a certain threshold.
- Parameters:
value- The value to check.- Returns:
- The value if it was valid, otherwise the value made valid.
-