Record Class ClassGenerator.TemplateData
java.lang.Object
java.lang.Record
ch.helvethink.odoo4java.generator.ClassGenerator.TemplateData
- Enclosing class:
ClassGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateData(String packageName, String modelName, String className, String importsList, List<FieldTemplate> fields) Creates an instance of aTemplateDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimportsListrecord component.Returns the value of themodelNamerecord component.Returns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemplateData
public TemplateData(String packageName, String modelName, String className, String importsList, List<FieldTemplate> fields) Creates an instance of aTemplateDatarecord class.- Parameters:
packageName- the value for thepackageNamerecord componentmodelName- the value for themodelNamerecord componentclassName- the value for theclassNamerecord componentimportsList- the value for theimportsListrecord componentfields- the value for thefieldsrecord 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). -
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
importsList
Returns the value of theimportsListrecord component.- Returns:
- the value of the
importsListrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-