Annotation Type BooleanDefault


@Retention(RUNTIME) @Target(METHOD) public @interface BooleanDefault
Specifies the default value as a boolean.

This annotation is made to be used with boolean or Boolean through the boolean liaison. Its presence will override the value of the default method, if it exists.

  • Required Element Summary

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

    • value

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

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