Record Class SimpleSerdeShapeDecision
java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.SimpleSerdeShapeDecision
- Record Components:
shapeKind- The detected candidate shape kind.serializerEligible- Whether serializer source generation is supported for the type.deserializerEligible- Whether deserializer source generation is supported for the type.serializerFallbackReasons- Reasons serializer generation falls back to introspection.deserializerFallbackReasons- Reasons deserializer generation falls back to introspection.
public record SimpleSerdeShapeDecision(SimpleSerdeShapeDecision.ShapeKind shapeKind, boolean serializerEligible, boolean deserializerEligible, EnumSet<SimpleSerdeShapeDecision.FallbackReason> serializerFallbackReasons, EnumSet<SimpleSerdeShapeDecision.FallbackReason> deserializerFallbackReasons)
extends Record
Source-generation eligibility outcome for a candidate type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumReasons a type falls back to introspection-backed serde handling.static enumSupported simple shapes for source-generated serdes. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSerdeShapeDecision(SimpleSerdeShapeDecision.ShapeKind shapeKind, boolean serializerEligible, boolean deserializerEligible, EnumSet<SimpleSerdeShapeDecision.FallbackReason> serializerFallbackReasons, EnumSet<SimpleSerdeShapeDecision.FallbackReason> deserializerFallbackReasons) Creates an instance of aSimpleSerdeShapeDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedeserializerEligiblerecord component.Returns the value of thedeserializerFallbackReasonsrecord 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 theserializerEligiblerecord component.Returns the value of theserializerFallbackReasonsrecord component.Returns the value of theshapeKindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleSerdeShapeDecision
public SimpleSerdeShapeDecision(SimpleSerdeShapeDecision.ShapeKind shapeKind, boolean serializerEligible, boolean deserializerEligible, EnumSet<SimpleSerdeShapeDecision.FallbackReason> serializerFallbackReasons, EnumSet<SimpleSerdeShapeDecision.FallbackReason> deserializerFallbackReasons) Creates an instance of aSimpleSerdeShapeDecisionrecord class.- Parameters:
shapeKind- the value for theshapeKindrecord componentserializerEligible- the value for theserializerEligiblerecord componentdeserializerEligible- the value for thedeserializerEligiblerecord componentserializerFallbackReasons- the value for theserializerFallbackReasonsrecord componentdeserializerFallbackReasons- the value for thedeserializerFallbackReasonsrecord 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. -
shapeKind
-
serializerEligible
public boolean serializerEligible()Returns the value of theserializerEligiblerecord component.- Returns:
- the value of the
serializerEligiblerecord component
-
deserializerEligible
public boolean deserializerEligible()Returns the value of thedeserializerEligiblerecord component.- Returns:
- the value of the
deserializerEligiblerecord component
-
serializerFallbackReasons
Returns the value of theserializerFallbackReasonsrecord component.- Returns:
- the value of the
serializerFallbackReasonsrecord component
-
deserializerFallbackReasons
Returns the value of thedeserializerFallbackReasonsrecord component.- Returns:
- the value of the
deserializerFallbackReasonsrecord component
-