- All Implemented Interfaces:
Serializable,Comparable<ArgsDefinitionErrorCode>,Constable
Encodes various definition errors that the developer(s) using RecordArgs must fix.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArgs::parsewas called with at least two records that have components of the same name.An args record's static initializer threw an error.An args types was neither a record nor a sealed interfaces with exclusively record implementations.RecordArgs has no reflective access to all args types.At most one sealed interface may be calledActionorActionArgs.An args record had an unsupported component type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgsDefinitionErrorCodeReturns the enum constant of this class with the specified name.static ArgsDefinitionErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ILL_DEFINED_ARGS_TYPE
An args types was neither a record nor a sealed interfaces with exclusively record implementations. -
UNSUPPORTED_ARGUMENT_TYPE
An args record had an unsupported component type. -
DUPLICATE_ARGUMENT_DEFINITION
Args::parsewas called with at least two records that have components of the same name. -
ILLEGAL_ACCESS
RecordArgs has no reflective access to all args types. -
FAULTY_STATIC_INITIALIZER
An args record's static initializer threw an error. -
MULTIPLE_ACTIONS
At most one sealed interface may be calledActionorActionArgs.
-
-
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
-