T
- the type of the Setting
@FunctionalInterface
public static interface Setting.Validator<T>
validate(Object, Map)
method is invoked with the value of this setting and a map
from the settings specified by settings()
} to their values. All these values come from the same Settings
instance.Modifier and Type | Method and Description |
---|---|
default java.util.Iterator<Setting<T>> |
settings()
The settings needed by this validator.
|
void |
validate(T value,
java.util.Map<Setting<T>,T> settings)
The validation routine for this validator.
|
void validate(T value, java.util.Map<Setting<T>,T> settings)
value
- the value of this settingsettings
- a map from the settings specified by settings()
} to their values