public enum ExampleMode extends java.lang.Enum<ExampleMode>
CmdLineParser.printExample(ExampleMode)
.Enum Constant and Description |
---|
ALL
Print all defined options in the example.
|
REQUIRED
Print all
required option. |
Modifier and Type | Method and Description |
---|---|
static ExampleMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExampleMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExampleMode ALL
This would be useful only when you have small number of options.
public static final ExampleMode REQUIRED
required
option.public static ExampleMode[] values()
for (ExampleMode c : ExampleMode.values()) System.out.println(c);
public static ExampleMode 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