- All Implemented Interfaces:
Serializable
,Comparable<DefaultSettings>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the default settings of versions before 0.9.0.The default settings for version 0.9.0. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
apply
(ArgumentParserBuilder builder) static DefaultSettings
Returns the enum constant of this class with the specified name.static DefaultSettings[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. The following settings are changed from
INITIAL_DEFAULT_SETTINGS
:
-
-
Constructor Details
-
DefaultSettings
private DefaultSettings()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
apply
-