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