Annotation Type LengthRange


  • @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 max
      Maximum value
      int min
      Minimum value
    • Element Detail

      • min

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

        int max
        Maximum value
        Returns:
        Maximum value
        Default:
        2147483647