Annotation Type IntegerRange


@Retention(RUNTIME) @Target(METHOD) public @interface IntegerRange
Controls the range of an numeric type. Identical to NumericRange but allows specifying bounds as a long rather than a double.
Author:
A248
  • Optional Element Summary

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

    • min

      long min
      The minimum value. If the type of the config value is not a long, the config value is casted for comparison.
      Returns:
      the min value, inclusive
      Default:
      0L
    • max

      long max
      The maximum value. If the type of the config value is not a long, the config value is casted for comparison.
      Returns:
      the max value, inclusive
      Default:
      9223372036854775807L