T
- the type of object being checked by the constraint.public interface ILocalConstraint<T>
Modifier and Type | Method and Description |
---|---|
void |
checkLocalConstraint(T object)
Checks this constraint and throws an exception only if the constraint is
violated for the object.
|
void checkLocalConstraint(T object) throws ConstraintViolationException
object
- the object to be checked by this constraint.ConstraintViolationException
- if the constraint was violated.