Enum NumberOfArguments
- java.lang.Object
-
- java.lang.Enum<NumberOfArguments>
-
- net.adoptopenjdk.icedteaweb.commandline.NumberOfArguments
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NumberOfArguments>
public enum NumberOfArguments extends java.lang.Enum<NumberOfArguments>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVEN_NUMBER_SUPPORTS_EQUALS_CHARNONENONE_OR_ONEONEONE_OR_MORE
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringmessageKey
-
Constructor Summary
Constructors Modifier Constructor Description privateNumberOfArguments(java.lang.String messageKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()static NumberOfArgumentsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NumberOfArguments[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final NumberOfArguments NONE
-
ONE
public static final NumberOfArguments ONE
-
ONE_OR_MORE
public static final NumberOfArguments ONE_OR_MORE
-
NONE_OR_ONE
public static final NumberOfArguments NONE_OR_ONE
-
EVEN_NUMBER_SUPPORTS_EQUALS_CHAR
public static final NumberOfArguments EVEN_NUMBER_SUPPORTS_EQUALS_CHAR
-
-
Method Detail
-
values
public static NumberOfArguments[] 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 (NumberOfArguments c : NumberOfArguments.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NumberOfArguments 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
-
getMessage
public java.lang.String getMessage()
-
-