Annotation Interface Default


@Target({METHOD,PARAMETER}) @Retention(CLASS) public @interface Default
Dual-purpose annotation.

On methods: Marks the default action when no subcommand matches. value() must be empty.

On parameters: Marks as optional. value() is the default value string.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Default value string for optional parameters.
  • Element Details

    • value

      String value
      Default value string for optional parameters. Empty on methods.
      Default:
      ""