Annotation Interface MinOccurrences


@Retention(RUNTIME) @Target(FIELD) public @interface MinOccurrences
Annotation that marks an option as being required to occur some minimum number of times (inclusive)

If you simply wish to indicate that an option must occur use Required instead.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The minimum number of occurrences for this option
  • Element Details

    • occurrences

      int occurrences
      The minimum number of occurrences for this option

      Zero or negative values are ignored

      Returns:
      Min occurrences
      Default:
      0