Annotation Type DoubleRange


@Retention(RUNTIME) @Target(TYPE_USE) public @interface DoubleRange
Controls the range of a double.

This annotation is made to be used with double or Double and not other numeric types. It is only supported by the double liaison.

  • Optional Element Summary

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

    • min

      double min
      The minimum value.

      If set to Double.NEGATIVE_INFINITY (the default), the bounds check is disabled.

      Returns:
      the min value, inclusive
      Default:
      -1.0/0.0
    • max

      double max
      The maximum value.

      If set to Double.POSITIVE_INFINITY (the default), the bounds check is disabled.

      Returns:
      the max value, inclusive
      Default:
      1.0/0.0