Record Class IdentifiableMeterReading
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.providers.IdentifiableMeterReading
- All Implemented Interfaces:
IdentifiablePayload<FrEnedisPermissionRequest,,MeterReading> MeterReadingEndDate
public record IdentifiableMeterReading(FrEnedisPermissionRequest permissionRequest, MeterReading meterReading, MeterReadingType meterReadingType)
extends Record
implements MeterReadingEndDate, IdentifiablePayload<FrEnedisPermissionRequest,MeterReading>
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifiableMeterReading(FrEnedisPermissionRequest permissionRequest, MeterReading meterReading, MeterReadingType meterReadingType) Creates an instance of aIdentifiableMeterReadingrecord class. -
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 themeterReadingrecord component.Returns the value of themeterReadingTyperecord component.payload()Returns the value of thepermissionRequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdentifiableMeterReading
public IdentifiableMeterReading(FrEnedisPermissionRequest permissionRequest, MeterReading meterReading, MeterReadingType meterReadingType) Creates an instance of aIdentifiableMeterReadingrecord class.- Parameters:
permissionRequest- the value for thepermissionRequestrecord componentmeterReading- the value for themeterReadingrecord componentmeterReadingType- the value for themeterReadingTyperecord component
-
-
Method Details
-
meterReadingEndDate
- Specified by:
meterReadingEndDatein interfaceMeterReadingEndDate
-
payload
- Specified by:
payloadin interfaceIdentifiablePayload<FrEnedisPermissionRequest,MeterReading>
-
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,MeterReading> - Returns:
- the value of the
permissionRequestrecord component
-
meterReading
Returns the value of themeterReadingrecord component.- Returns:
- the value of the
meterReadingrecord component
-
meterReadingType
Returns the value of themeterReadingTyperecord component.- Returns:
- the value of the
meterReadingTyperecord component
-