public enum ExampleMode extends Enum<ExampleMode> implements OptionHandlerFilter
CmdLineParser.printExample(ExampleMode)
.Enum Constant and Description |
---|
ALL
Deprecated.
Print all defined options in the example.
|
REQUIRED
Deprecated.
Print all required option.
|
ALL, PUBLIC, REQUIRED
Modifier and Type | Method and Description |
---|---|
static ExampleMode |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ExampleMode[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
select
public static final ExampleMode ALL
This would only be useful with small numbers of options.
public static final ExampleMode REQUIRED
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-2016 Kohsuke Kawaguchi. All Rights Reserved.