Interface Setting.Validator<T>
-
- Type Parameters:
T
- the type of theSetting
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface Setting.Validator<T>
Represents a validator for a setting. Thevalidate(Object, Map)
method is invoked with the value of this setting and a map from the settings specified bysettings()
} to their values. All these values come from the sameSettings
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
validate
void validate(T value, java.util.Map<Setting<T>,T> settings)
The validation routine for this validator.- Parameters:
value
- the value of this settingsettings
- a map from the settings specified bysettings()
} to their values
-
-