Annotation Interface Range


@Target(FIELD) @Retention(RUNTIME) public @interface Range
Validates that a numeric config value falls within the specified range. If the value is out of range, the module refuses to load naming the field, the actual value, and the violated bounds - the config file is never rewritten (D-01).
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    double
    Maximum allowed value (inclusive).
    double
    Minimum allowed value (inclusive).
  • Element Details

    • min

      double min
      Minimum allowed value (inclusive). Default: -Double.MAX_VALUE
      Default:
      -1.7976931348623157E308
    • max

      double max
      Maximum allowed value (inclusive). Default: Double.MAX_VALUE
      Default:
      1.7976931348623157E308