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