- java.lang.Object
-
- java.lang.Enum<DefaultSettings>
-
- net.sourceforge.argparse4j.DefaultSettings
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DefaultSettings>
public enum DefaultSettings extends java.lang.Enum<DefaultSettings>
Use one of these values with
ArgumentParsers.newFor(String, DefaultSettings)
to specify of which version the default settings must be used. The chosen defaults will continue to be used by newer versions of argparse4j, ensuring that the behavior of the application does not change when argparse4j is upgraded.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INITIAL_DEFAULT_SETTINGS
Use the default settings of versions before 0.9.0.VERSION_0_9_0_DEFAULT_SETTINGS
The default settings for version 0.9.0.
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultSettings()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
apply(ArgumentParserBuilder builder)
static DefaultSettings
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultSettings[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL_DEFAULT_SETTINGS
public static final DefaultSettings INITIAL_DEFAULT_SETTINGS
Use the default settings of versions before 0.9.0.
-
VERSION_0_9_0_DEFAULT_SETTINGS
public static final DefaultSettings VERSION_0_9_0_DEFAULT_SETTINGS
The default settings for version 0.9.0. The following settings are changed from
INITIAL_DEFAULT_SETTINGS
:
-
-
Method Detail
-
values
public static DefaultSettings[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultSettings c : DefaultSettings.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultSettings valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
apply
abstract void apply(ArgumentParserBuilder builder)
-
-