Annotation Type Once


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Once
    An annotation that marks that an option may occur at most once

    If you want to specify the minimum and maximum occurrences of an option you can use the MinOccurrences and MaxOccurrences annotations instead.