edu.tum.cs.commons.constraint
Interface ILocalConstraint<T>
- Type Parameters:
T
- the type of object being checked by the constraint.
public interface ILocalConstraint<T>
Interface of a constraint checking a local property, i.e. one that can be
verified by only seeing one object. A constraint usually should be stateless.
- Version:
- $Rev: 26283 $
- Author:
- hummelb, $Author: juergens $
- Rating:
- GREEN Hash: 92D35FD04ECF2EB71E20CF1FA5E2CD24
Method Summary |
void |
checkLocalConstraint(T object)
Checks this constraint and throws an exception only if the constraint is
violated for the object. |
checkLocalConstraint
void checkLocalConstraint(T object)
throws ConstraintViolationException
- Checks this constraint and throws an exception only if the constraint is
violated for the object.
- Parameters:
object
- the object to be checked by this constraint.
- Throws:
ConstraintViolationException
- if the constraint was violated.
TUM CCSM Commons - 2.7