Annotation Interface Range


@Target(PARAMETER) @Retention(RUNTIME) public @interface Range
An annotation that marks a numerical parameter as required to be in a specific range
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    double
    The maximum value allowed for this parameter
    double
    The minimum value allowed for this parameter
  • Element Details

    • min

      double min
      The minimum value allowed for this parameter
      Returns:
      The minimum value
      Default:
      4.9E-324
    • max

      double max
      The maximum value allowed for this parameter
      Returns:
      The maximum value
      Default:
      1.7976931348623157E308