Annotation 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
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
    int
     
     
    int
     
    Class<? extends Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "{javax.validation.constraints.Size.message}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends Payload>[] payload
      Default:
      {}
    • min

      int min
      Default:
      0
    • max

      int max
      Default:
      2147483647