public class ContainsConstraint extends Object implements Constraint<Contains,String>
Constructor and Description |
---|
ContainsConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Contains annotation,
String argument)
For each value or parameter which should be checked this method will be invoked.
|
public boolean isValid(Contains annotation, String argument)
Constraint
isValid
in interface Constraint<Contains,String>
annotation
- the annotation to matchargument
- the value to be checked