Annotation Type ValidateLength
@Target(METHOD) @Retention(RUNTIME) public @interface ValidateLength
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringmaxMessageintminStringminMessageintvalue
-
Element Details
-
value
int value- Default:
- 255
-
min
int min- Default:
- -1
-
minMessage
String minMessage- Default:
- "Value for field \'%s\' is shorter than %4$d!"
-
maxMessage
String maxMessage- Default:
- "Value for field \'%s\' is longer than %3$d!"
-