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
-
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
-
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). -
modelName
-
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
-