Record Class BeanSerdeShape
java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.beans.BeanSerdeShape
- Record Components:
defaultConstructor- The selected default constructor.properties- Bean properties included in generated serialization.
public record BeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> properties)
extends Record
Shape model for bean-based source generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordBean property metadata used by source generation. -
Constructor Summary
ConstructorsConstructorDescriptionBeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> properties) Creates an instance of aBeanSerdeShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.inject.ast.MethodElementReturns the value of thedefaultConstructorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeanSerdeShape
public BeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> properties) Creates an instance of aBeanSerdeShaperecord class.- Parameters:
defaultConstructor- the value for thedefaultConstructorrecord componentproperties- the value for thepropertiesrecord 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). -
defaultConstructor
public io.micronaut.inject.ast.MethodElement defaultConstructor()Returns the value of thedefaultConstructorrecord component.- Returns:
- the value of the
defaultConstructorrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-