T
- public interface AnyConstraint<T>
Modifier and Type | Method and Description |
---|---|
boolean |
check(ValidationContext context,
T object)
Checks if the object conforms to the specific rule in the given context.
|
int |
getErrorCode()
Returns the error code from this constraints.
|
boolean check(ValidationContext context, T object)
If the rule behaves different for each level/version, the level and version of the context will be used.
context
- object
- int getErrorCode()