Record Class BeanSerdeShape

java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.beans.BeanSerdeShape
Record Components:
defaultConstructor - The selected default constructor.
serializationProperties - Bean properties written by the generated serializer, in write order.
deserializationProperties - Bean properties read by the generated deserializer.
ignoredDeserializationNames - Serialized names the generated deserializer skips silently: writable properties excluded from deserialization through configuration.
ignoreUnknown - The type-level unknown property policy, or null when the runtime configuration decides.

public record BeanSerdeShape(io.micronaut.inject.ast.MethodElement defaultConstructor, List<BeanSerdeShape.BeanProperty> serializationProperties, List<BeanSerdeShape.BeanProperty> deserializationProperties, List<String> ignoredDeserializationNames, @Nullable Boolean ignoreUnknown) extends Record
Shape model for bean-based source generation.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • defaultConstructor

      public io.micronaut.inject.ast.MethodElement defaultConstructor()
      Returns the value of the defaultConstructor record component.
      Returns:
      the value of the defaultConstructor record component
    • serializationProperties

      public List<BeanSerdeShape.BeanProperty> serializationProperties()
      Returns the value of the serializationProperties record component.
      Returns:
      the value of the serializationProperties record component
    • deserializationProperties

      public List<BeanSerdeShape.BeanProperty> deserializationProperties()
      Returns the value of the deserializationProperties record component.
      Returns:
      the value of the deserializationProperties record component
    • ignoredDeserializationNames

      public List<String> ignoredDeserializationNames()
      Returns the value of the ignoredDeserializationNames record component.
      Returns:
      the value of the ignoredDeserializationNames record component
    • ignoreUnknown

      public @Nullable Boolean ignoreUnknown()
      Returns the value of the ignoreUnknown record component.
      Returns:
      the value of the ignoreUnknown record component