Annotation Interface InputStreamSize
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy=InputStreamSizeImpl.class)
public @interface InputStreamSize
The annotated
InputStream size must be between the specified boundaries (included).- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines several@InputStreamSizeannotations on the same element -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String message- Returns:
- The constraint error message
- Since:
- 1.0.0
- Default:
- "{jakarta.validation.constraints.Size.message}"
-
groups
Class<?>[] groups- Returns:
- The subset of constraints
- Since:
- 1.0.0
- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payload- Returns:
- The attached Payload type
- Since:
- 1.0.0
- Default:
- {}
-
min
long min- Returns:
- The number of available bytes must be higher or equal to
- Since:
- 1.0.0
- Default:
- 0L
-
max
long max- Returns:
- The number of available bytes must be lowed or equal to
- Since:
- 1.0.0
- Default:
- 9223372036854775807L
-