Record Class CompanyNameRecord
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.enin.records.CompanyNameRecord
public record CompanyNameRecord(CompanyRecord company, CompanyDetailsRecord company_details)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCompanyNameRecord(CompanyRecord company, CompanyDetailsRecord company_details) Creates an instance of aCompanyNameRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompany()Returns the value of thecompanyrecord component.Returns the value of thecompany_detailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompanyNameRecord
Creates an instance of aCompanyNameRecordrecord class.- Parameters:
company- the value for thecompanyrecord componentcompany_details- the value for thecompany_detailsrecord 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). -
company
Returns the value of thecompanyrecord component.- Returns:
- the value of the
companyrecord component
-
company_details
Returns the value of thecompany_detailsrecord component.- Returns:
- the value of the
company_detailsrecord component
-