- java.lang.Object
-
- java.lang.Enum<CommandArgPrefixes>
-
- org.refcodes.data.CommandArgPrefixes
-
- All Implemented Interfaces:
Serializable
,Comparable<CommandArgPrefixes>
public enum CommandArgPrefixes extends Enum<CommandArgPrefixes>
This enumeration groupsCommandArgPrefix
by platform.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandArgPrefix[]
getCommandArgPrefixes()
Returns the relatedCommandArgPrefix
elements.String[]
toPrefixes()
Returns an array with allString
prefixes as ofCommandArgPrefix.getPrefix()
defined by this enumeration.static CommandArgPrefixes
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommandArgPrefixes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WINDOWS
public static final CommandArgPrefixes WINDOWS
Prefixes for command line arguments commonly used on Windows based systems.
-
POSIX
public static final CommandArgPrefixes POSIX
Prefixes for command line arguments commonly used on POSIX conforming systems.
-
-
Method Detail
-
values
public static CommandArgPrefixes[] 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 (CommandArgPrefixes c : CommandArgPrefixes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandArgPrefixes valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCommandArgPrefixes
public CommandArgPrefix[] getCommandArgPrefixes()
Returns the relatedCommandArgPrefix
elements.- Returns:
- The according
CommandArgPrefix
elements.
-
toPrefixes
public String[] toPrefixes()
Returns an array with allString
prefixes as ofCommandArgPrefix.getPrefix()
defined by this enumeration.- Returns:
- The array with the according prefixes.
-
-