Package jakarta.validation.constraints
Annotation Type Size
- 
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @Documented @Constraint(validatedBy={}) public @interface SizeThe annotated element size must be between the specified boundaries (included).Supported types are:
CharSequence(length of character sequence is evaluated)Collection(collection size is evaluated)Map(map size is evaluated)- Array (array length is evaluated)
 
nullelements are considered valid.- Author:
 - Emmanuel Bernard
 
 
- 
- 
- 
payload
java.lang.Class<? extends Payload>[] payload
- Default:
 - {}
 
 
 - 
 
 -