Record Class EnumSerdeShape
java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.enums.EnumSerdeShape
- Record Components:
constants- Enum constants participating in generated mapping.hasPropertyOverrides- Whether any constant has an overridden serialized name.
public record EnumSerdeShape(List<EnumSerdeShape.EnumConstant> constants, boolean hasPropertyOverrides)
extends Record
Shape model for enum-based source generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordEnum constant metadata used by source generation. -
Constructor Summary
ConstructorsConstructorDescriptionEnumSerdeShape(List<EnumSerdeShape.EnumConstant> constants, boolean hasPropertyOverrides) Creates an instance of aEnumSerdeShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstantsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasPropertyOverridesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnumSerdeShape
Creates an instance of aEnumSerdeShaperecord class.- Parameters:
constants- the value for theconstantsrecord componenthasPropertyOverrides- the value for thehasPropertyOverridesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
constants
-
hasPropertyOverrides
public boolean hasPropertyOverrides()Returns the value of thehasPropertyOverridesrecord component.- Returns:
- the value of the
hasPropertyOverridesrecord component
-