public static enum Args.Type extends Enum<Args.Type>
Enum Constant and Description |
---|
FLAG
A flag option, expecting no value: it is either present, or absent
|
NUMERIC
A numeric option, expecting an integer value
|
STRING
A string option, expecting any string value
|
Modifier and Type | Method and Description |
---|---|
static Args.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Args.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Args.Type FLAG
public static final Args.Type NUMERIC
public static final Args.Type STRING
public static Args.Type[] values()
for (Args.Type c : Args.Type.values()) System.out.println(c);
public static Args.Type 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 null