Annotation Type IntegerRange


@Retention(RUNTIME) @Target(TYPE_USE) public @interface IntegerRange
Controls the range of an int.

This annotation is made to be used with int or Integer and not other numeric types. It is only supported by the integer liaison.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The maximum value.
    int
    The minimum value.
  • Element Details

    • min

      int min
      The minimum value.
      Returns:
      the min value, inclusive
      Default:
      -2147483648
    • max

      int max
      The maximum value.
      Returns:
      the max value, inclusive
      Default:
      2147483647