Record Class EnumDef.EnumConstantDef
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.EnumDef.EnumConstantDef
- Record Components:
name- The enum constant nameconstructorArgs- The arguments passed to the enum constructorjavadoc- The documentation
- Enclosing class:
EnumDef
-
Constructor Summary
ConstructorsConstructorDescriptionEnumConstantDef(String name, List<ExpressionDef> constructorArgs, List<String> javadoc) Creates an instance of aEnumConstantDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstructorArgsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.javadoc()Returns the value of thejavadocrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnumConstantDef
Creates an instance of aEnumConstantDefrecord class.- Parameters:
name- the value for thenamerecord componentconstructorArgs- the value for theconstructorArgsrecord componentjavadoc- the value for thejavadocrecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
constructorArgs
Returns the value of theconstructorArgsrecord component.- Returns:
- the value of the
constructorArgsrecord component
-
javadoc
-