public class InstanceOfConstraint extends Object implements Constraint<InstanceOf,Object>
Constructor and Description |
---|
InstanceOfConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(InstanceOf annotation,
Object parameter)
For each value or parameter which should be checked this method will be invoked.
|
public boolean isValid(InstanceOf annotation, Object parameter) throws NullPointerException
Constraint
isValid
in interface Constraint<InstanceOf,Object>
annotation
- the annotation to matchparameter
- the value to be checkedNullPointerException