-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=MaxLengthConstraintValidator.class) public @interface MaxLength
The annotated element must have a string length whose value must be lower or equal to the specified maximum.- Since:
- 0.1
- Author:
- nedis
- See Also:
Length,MinLength,MaxLengthConstraintValidator
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description intvalueReturns the value the string length must be lower or equal to.
-