Class OccurrencesRestrictionFactory

java.lang.Object
com.github.rvesse.airline.restrictions.factories.OccurrencesRestrictionFactory
All Implemented Interfaces:
ArgumentsRestrictionFactory, OptionRestrictionFactory

public class OccurrencesRestrictionFactory extends Object implements OptionRestrictionFactory, ArgumentsRestrictionFactory
An annotation used to mark that an option must occur at most once

To more finely control the number of occurrences of an option use MinOccurrences and MaxOccurrences. If you simply wish to state that an option must occur then use Required.