public static enum CommandLineOption.Cardinality extends Enum<CommandLineOption.Cardinality>
CommandLineOption.cardinality()| Enum Constant and Description | 
|---|
| ANYIndicates that the annotated command line option may appear any number of times. | 
| MANDATORYIndicates that the annotated command line option must appear exactly once. | 
| ONCE_OR_MOREIndicates that the annotated command line option must appear once or multiple times. | 
| OPTIONALIndicates that the annotated command line option must appear zero times or once. | 
| Modifier and Type | Method and Description | 
|---|---|
| static CommandLineOption.Cardinality | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static CommandLineOption.Cardinality[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final CommandLineOption.Cardinality OPTIONAL
public static final CommandLineOption.Cardinality MANDATORY
public static final CommandLineOption.Cardinality ONCE_OR_MORE
public static final CommandLineOption.Cardinality ANY
public static CommandLineOption.Cardinality[] values()
for (CommandLineOption.Cardinality c : CommandLineOption.Cardinality.values()) System.out.println(c);
public static CommandLineOption.Cardinality valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018 Arno Unkrig. All rights reserved.