Record Class CtxDtoDiscriminator.ModelMapping
java.lang.Object
java.lang.Record
dk.mada.jaxrs.generator.mpclient.dto.tmpl.CtxDtoDiscriminator.ModelMapping
- Record Components:
modelName- the name of the modelmappingName- the way it is referred to in the streamvendorExtensions- map of vendor extensions
- Enclosing class:
CtxDtoDiscriminator
public static record CtxDtoDiscriminator.ModelMapping(String modelName, String mappingName, @Nullable Map<String,String> vendorExtensions)
extends Record
Defines a mapping between a model (DTO) name and a name used in the serialization stream.
-
Constructor Summary
Constructors -
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.Returns the value of themappingNamerecord component.Returns the value of themodelNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevendorExtensionsrecord component.
-
Constructor Details
-
ModelMapping
public ModelMapping(String modelName, String mappingName, @Nullable Map<String, String> vendorExtensions) Creates an instance of aModelMappingrecord class.- Parameters:
modelName- the value for themodelNamerecord componentmappingName- the value for themappingNamerecord componentvendorExtensions- the value for thevendorExtensionsrecord component
-
-
Method Details
-
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. -
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. -
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). -
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
mappingName
Returns the value of themappingNamerecord component.- Returns:
- the value of the
mappingNamerecord component
-
vendorExtensions
Returns the value of thevendorExtensionsrecord component.- Returns:
- the value of the
vendorExtensionsrecord component
-