Annotation Type FloatDefault


@Retention(RUNTIME) @Target(METHOD) public @interface FloatDefault
Specifies the default value as a float

This annotation is made to be used with float or Float and not other numeric types. It is only supported by the float liaison. Its presence will also override the value of the default method, if it exists.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    float
    The float value to provide as an "if missing" default.
    float
    The float value to provide as a default.
  • Element Details

    • value

      float value
      The float value to provide as a default.
      Returns:
      the float value
    • ifMissing

      float ifMissing
      The float value to provide as an "if missing" default. See DefaultValues.ifMissing() for considerations.
      Returns:
      the float value if missing