public enum ExampleMode extends 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(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(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 © 2003-2015 Kohsuke Kawaguchi. All Rights Reserved.