Annotation Interface RangedDouble


@Target(FIELD) @Retention(RUNTIME) public @interface RangedDouble
When this annotation is used on a double property it will validate that the value is within the range, inclusive of the minimum and maximum values.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    double
    Gets the highest value permitted for the property.
    double
    Gets the lowest value permitted for the property.
  • Element Details

    • min

      double min
      Gets the lowest value permitted for the property.
      Returns:
      The lowest permitted value.
      Default:
      -1.7976931348623157E308
    • max

      double max
      Gets the highest value permitted for the property.
      Returns:
      The highest permitted value.
      Default:
      1.7976931348623157E308