Record Class IdentifiableAccountingPointData
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.providers.IdentifiableAccountingPointData
- All Implemented Interfaces:
IdentifiablePayload<FrEnedisPermissionRequest,AccountingPointSummary>
public record IdentifiableAccountingPointData(FrEnedisPermissionRequest permissionRequest, CustomerContract contract, CustomerAddress address, CustomerIdentity identity, CustomerContact contact)
extends Record
implements IdentifiablePayload<FrEnedisPermissionRequest,AccountingPointSummary>
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifiableAccountingPointData(FrEnedisPermissionRequest permissionRequest, CustomerContract contract, CustomerAddress address, CustomerIdentity identity, CustomerContact contact) Creates an instance of aIdentifiableAccountingPointDatarecord 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.payload()Returns the value of thepermissionRequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdentifiableAccountingPointData
public IdentifiableAccountingPointData(FrEnedisPermissionRequest permissionRequest, CustomerContract contract, CustomerAddress address, CustomerIdentity identity, CustomerContact contact) Creates an instance of aIdentifiableAccountingPointDatarecord class.- Parameters:
permissionRequest- the value for thepermissionRequestrecord componentcontract- the value for thecontractrecord componentaddress- the value for theaddressrecord componentidentity- the value for theidentityrecord componentcontact- the value for thecontactrecord component
-
-
Method Details
-
payload
- Specified by:
payloadin interfaceIdentifiablePayload<FrEnedisPermissionRequest,AccountingPointSummary>
-
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). -
permissionRequest
Returns the value of thepermissionRequestrecord component.- Specified by:
permissionRequestin interfaceIdentifiablePayload<FrEnedisPermissionRequest,AccountingPointSummary> - Returns:
- the value of the
permissionRequestrecord component
-
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
-