@Retention(RUNTIME) @Target(FIELD) public @interface LengthRange
Annotation that marks values as being restricted to a given length range i.e. the length of the value must be within the range
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Maximum value
    int
    Minimum value
  • Element Details

    • min

      int min
      Minimum value
      Returns:
      Minimum value
      Default:
      -2147483648
    • max

      int max
      Maximum value
      Returns:
      Maximum value
      Default:
      2147483647