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