Enum Class CommandRegistration.OptionArity
java.lang.Object
java.lang.Enum<CommandRegistration.OptionArity>
org.springframework.shell.command.CommandRegistration.OptionArity
- All Implemented Interfaces:
Serializable
,Comparable<CommandRegistration.OptionArity>
,Constable
- Enclosing interface:
- CommandRegistration
Enumeration of option arity values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefine min(1), max(1).Used to indicate that arity is not set.Define min(1), max(MAXINTEGER).Define min(0), max(0).Define min(0), max(MAXINTEGER).Define min(0), max(1). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CommandRegistration.OptionArity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Used to indicate that arity is not set. Exists as a workaround for a case where it's not possible to use null values. -
ZERO
Define min(0), max(0). -
ZERO_OR_ONE
Define min(0), max(1). -
EXACTLY_ONE
Define min(1), max(1). -
ZERO_OR_MORE
Define min(0), max(MAXINTEGER). -
ONE_OR_MORE
Define min(1), max(MAXINTEGER).
-
-
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
-