Record Class SerdeSourceGenGetterMethods.GetterMethod
java.lang.Object
java.lang.Record
io.micronaut.serde.processor.sourcegen.SerdeSourceGenGetterMethods.GetterMethod
- Record Components:
originalName- The name derived from the method name, which a property order can refer toserializedName- The name the value is written undermethod- The method returning the valuetype- The return type of the methodkeyMetadata- Pre-resolved metadata contributed with the keyinclude- The inclusion resolved at build time, ornullwhen the configuration decides
- Enclosing class:
SerdeSourceGenGetterMethods
public static record SerdeSourceGenGetterMethods.GetterMethod(String originalName, String serializedName, io.micronaut.inject.ast.MethodElement method, io.micronaut.inject.ast.ClassElement type, Map<String,String> keyMetadata, @Nullable SerdeConfig.SerInclude include)
extends Record
A getter method the generated serializer writes.
- Since:
- 3.2
-
Constructor Summary
ConstructorsConstructorDescriptionGetterMethod(String originalName, String serializedName, io.micronaut.inject.ast.MethodElement method, io.micronaut.inject.ast.ClassElement type, Map<String, String> keyMetadata, @Nullable SerdeConfig.SerInclude include) Creates an instance of aGetterMethodrecord 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.@Nullable SerdeConfig.SerIncludeinclude()Returns the value of theincluderecord component.Returns the value of thekeyMetadatarecord component.io.micronaut.inject.ast.MethodElementmethod()Returns the value of themethodrecord component.Returns the value of theoriginalNamerecord component.Returns the value of theserializedNamerecord component.final StringtoString()Returns a string representation of this record class.io.micronaut.inject.ast.ClassElementtype()Returns the value of thetyperecord component.
-
Constructor Details
-
GetterMethod
public GetterMethod(String originalName, String serializedName, io.micronaut.inject.ast.MethodElement method, io.micronaut.inject.ast.ClassElement type, Map<String, String> keyMetadata, @Nullable SerdeConfig.SerInclude include) Creates an instance of aGetterMethodrecord class.- Parameters:
originalName- the value for theoriginalNamerecord componentserializedName- the value for theserializedNamerecord componentmethod- the value for themethodrecord componenttype- the value for thetyperecord componentkeyMetadata- the value for thekeyMetadatarecord componentinclude- the value for theincluderecord 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). -
originalName
Returns the value of theoriginalNamerecord component.- Returns:
- the value of the
originalNamerecord component
-
serializedName
Returns the value of theserializedNamerecord component.- Returns:
- the value of the
serializedNamerecord component
-
method
-
type
-
keyMetadata
Returns the value of thekeyMetadatarecord component.- Returns:
- the value of the
keyMetadatarecord component
-
include
-