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).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Defines several @InputStreamSize annotations on the same element
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
    long
     
     
    long
     
    Class<? extends jakarta.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Returns:
      The constraint error message
      Default:
      "{jakarta.validation.constraints.Size.message}"
    • groups

      Class<?>[] groups
      Returns:
      The subset of constraints
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Returns:
      The attached Payload type
      Default:
      {}
    • min

      long min
      Returns:
      The number of available bytes must be higher or equal to
      Default:
      0L
    • max

      long max
      Returns:
      The number of available bytes must be lower or equal to
      Default:
      9223372036854775807L