Package ml.options
Enum Options.Prefix
- All Implemented Interfaces:
Serializable
,Comparable<Options.Prefix>
,java.lang.constant.Constable
- Enclosing class:
Options
An enum encapsulating the possible prefixes identifying options (and separating them from command line data items)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOptions start with a "-" (typically on Unix platforms)Options start with a "--" (like GNU-style options on Unix platforms)Options start with a "/" (typically on Windows platforms) -
Method Summary
Modifier and TypeMethodDescriptionstatic Options.Prefix
Returns the enum constant of this type with the specified name.static Options.Prefix[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DASH
Options start with a "-" (typically on Unix platforms) -
DOUBLEDASH
Options start with a "--" (like GNU-style options on Unix platforms) -
SLASH
Options start with a "/" (typically on Windows platforms)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-