Module is.codion.framework.domain
Interface AttributeValidator<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Validates the value for an
Attribute.
Note that this validator is only called for non-null values, use EntityValidator for null validation.
- See Also:
-
Method Summary
-
Method Details
-
validate
Validates the given value. This method is only called for non-null values.- Parameters:
value- the value to validate- Throws:
IllegalArgumentException- in case the value is invalid
-