Annotation Interface Switch


@Retention(RUNTIME) @Target(PARAMETER) public @interface Switch
Declares one or more switch names for a boolean-like parameter. If free is true, presence of the switch toggles the value without requiring an explicit argument.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
  • Element Details

    • free

      boolean free
      Default:
      false