Annotation Interface RangedFloat


@Target(FIELD) @Retention(RUNTIME) public @interface RangedFloat
When this annotation is used on a float 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
    float
    Gets the highest value permitted for the property.
    float
    Gets the lowest value permitted for the property.
  • Element Details

    • min

      float min
      Gets the lowest value permitted for the property.
      Returns:
      The lowest permitted value.
      Default:
      -3.4028235E38f
    • max

      float max
      Gets the highest value permitted for the property.
      Returns:
      The highest permitted value.
      Default:
      3.4028235E38f