Package javax.validation.constraints
Annotation Interface Size
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy={})
public @interface Size
Verify that size of the annotated element is higher or equals the min value
and lower or equals the max value or whether the annotated element is
null
.
For Strings we will check the length, for Collections and arrays the size.- Version:
- $Rev$ $Date$
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements