@Retention(RUNTIME) @Target(FIELD) @Documented public @interface Partial
Annotation which is used as a modifier to indicate that a restriction annotation (whose type is denoted by the restriction() field) does not apply to all values passed to an Option or Arguments annotated field but rather applies only to certain values
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int[]
    Specifies the indices (zero-based) to which the restriction should actually apply
    Class<? extends Annotation>
    Specifies the restriction type whose application should be partial
  • Element Details

    • appliesTo

      int[] appliesTo
      Specifies the indices (zero-based) to which the restriction should actually apply
      Returns:
      Indices to which the restriction applies
    • restriction

      Class<? extends Annotation> restriction
      Specifies the restriction type whose application should be partial
      Returns:
      Restriction type