public static enum OptionParser.OptionCount extends java.lang.Enum<OptionParser.OptionCount>
Enum Constant and Description |
---|
MULTIPLE
The option may be specified multiple times
|
OPTIONAL
The option may be specified once
|
REQUIRED
The option is required exactly once
|
Modifier and Type | Method and Description |
---|---|
static OptionParser.OptionCount |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OptionParser.OptionCount[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptionParser.OptionCount OPTIONAL
public static final OptionParser.OptionCount REQUIRED
public static final OptionParser.OptionCount MULTIPLE
public static OptionParser.OptionCount[] values()
for (OptionParser.OptionCount c : OptionParser.OptionCount.values()) System.out.println(c);
public static OptionParser.OptionCount valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null