Record Class RecordSerdeShape.RecordComponent
java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.records.RecordSerdeShape.RecordComponent
- Record Components:
name- The component name.type- The component type.propertyElement- The associated bean property element.
- Enclosing class:
RecordSerdeShape
-
Constructor Summary
ConstructorsConstructorDescriptionRecordComponent(String name, io.micronaut.inject.ast.ClassElement type, io.micronaut.inject.ast.PropertyElement propertyElement) Creates an instance of aRecordComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.io.micronaut.inject.ast.PropertyElementReturns the value of thepropertyElementrecord component.final StringtoString()Returns a string representation of this record class.io.micronaut.inject.ast.ClassElementtype()Returns the value of thetyperecord component.
-
Constructor Details
-
RecordComponent
public RecordComponent(String name, io.micronaut.inject.ast.ClassElement type, io.micronaut.inject.ast.PropertyElement propertyElement) Creates an instance of aRecordComponentrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentpropertyElement- the value for thepropertyElementrecord component
-
-
Method Details
-
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
-
type
-
propertyElement
public io.micronaut.inject.ast.PropertyElement propertyElement()Returns the value of thepropertyElementrecord component.- Returns:
- the value of the
propertyElementrecord component
-