Record Class IdentifiableConsumptionRecord
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.dto.IdentifiableConsumptionRecord
- All Implemented Interfaces:
MeterReadingEndDate
public record IdentifiableConsumptionRecord(EdaConsumptionRecord consumptionRecord, List<AtPermissionRequest> permissionRequests, LocalDate meterReadingStartDate, LocalDate meterReadingEndDate)
extends Record
implements MeterReadingEndDate
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifiableConsumptionRecord(EdaConsumptionRecord consumptionRecord, List<AtPermissionRequest> permissionRequests, LocalDate meterReadingStartDate, LocalDate meterReadingEndDate) Creates an instance of aIdentifiableConsumptionRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumptionRecordrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themeterReadingEndDaterecord component.Returns the value of themeterReadingStartDaterecord component.Returns the value of thepermissionRequestsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdentifiableConsumptionRecord
public IdentifiableConsumptionRecord(EdaConsumptionRecord consumptionRecord, List<AtPermissionRequest> permissionRequests, LocalDate meterReadingStartDate, LocalDate meterReadingEndDate) Creates an instance of aIdentifiableConsumptionRecordrecord class.- Parameters:
consumptionRecord- the value for theconsumptionRecordrecord componentpermissionRequests- the value for thepermissionRequestsrecord componentmeterReadingStartDate- the value for themeterReadingStartDaterecord componentmeterReadingEndDate- the value for themeterReadingEndDaterecord 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). -
consumptionRecord
Returns the value of theconsumptionRecordrecord component.- Returns:
- the value of the
consumptionRecordrecord component
-
permissionRequests
Returns the value of thepermissionRequestsrecord component.- Returns:
- the value of the
permissionRequestsrecord component
-
meterReadingStartDate
Returns the value of themeterReadingStartDaterecord component.- Returns:
- the value of the
meterReadingStartDaterecord component
-
meterReadingEndDate
Returns the value of themeterReadingEndDaterecord component.- Specified by:
meterReadingEndDatein interfaceMeterReadingEndDate- Returns:
- the value of the
meterReadingEndDaterecord component
-