Annotation Interface FloatRange


@Retention(RUNTIME) @Target({FIELD,RECORD_COMPONENT}) @Documented public @interface FloatRange
Config validator annotation that checks whether a float is in a range of allowed values.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    float
    The upper bound (inclusive)
    float
    The lower bound (inclusive)
  • Element Details

    • min

      float min
      The lower bound (inclusive)
      Default:
      -1.0f/0.0f
    • max

      float max
      The upper bound (inclusive)
      Default:
      1.0f/0.0f