Annotation Type NumericRange


@Retention(RUNTIME) @Target(METHOD) public @interface NumericRange
Controls the range of any numeric type. May be used for byte, short, int, long, float, and double.
Author:
A248
  • Optional Element Summary

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

    • min

      double min
      The minimum double value. If the type of the config value is not a double, the config value is casted for comparison.
      Returns:
      the min value, inclusive
      Default:
      4.9E-324
    • max

      double max
      The maximum double value. If the type of the config value is not a double, the config value is casted for comparison.
      Returns:
      the max value, inclusive
      Default:
      1.7976931348623157E308