Annotation Interface Range


@Retention(RUNTIME) @Target({TYPE,PARAMETER}) public @interface Range
Constrains a numeric parameter or type to a minimum/maximum value. Values outside the bounds should be rejected by the parser/validator.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    double
     
    double
     
  • Element Details

    • min

      double min
      Default:
      4.9E-324
    • max

      double max
      Default:
      1.7976931348623157E308