Annotation Interface Required


@Target({METHOD,PARAMETER}) @Retention(RUNTIME) @Documented public @interface Required
Shortcut for @Cardinality(min=1, max=1) (if true) or @Cardinality(min=0, max=1) (if false).
  • Optional Element Summary

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

    • value

      boolean value
      Default:
      true