Record Class AccountingPointSummary
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.providers.agnostic.AccountingPointSummary
public record AccountingPointSummary(CustomerContract contract, CustomerAddress address, CustomerIdentity identity, CustomerContact contact)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAccountingPointSummary(CustomerContract contract, CustomerAddress address, CustomerIdentity identity, CustomerContact contact) Creates an instance of aAccountingPointSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.contact()Returns the value of thecontactrecord component.contract()Returns the value of thecontractrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountingPointSummary
public AccountingPointSummary(CustomerContract contract, CustomerAddress address, CustomerIdentity identity, CustomerContact contact) Creates an instance of aAccountingPointSummaryrecord class.- Parameters:
contract- the value for thecontractrecord componentaddress- the value for theaddressrecord componentidentity- the value for theidentityrecord componentcontact- the value for thecontactrecord 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). -
contract
Returns the value of thecontractrecord component.- Returns:
- the value of the
contractrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
contact
Returns the value of thecontactrecord component.- Returns:
- the value of the
contactrecord component
-