Record Class GDailyEnergyItemResponseModel
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.be.fluvius.client.model.GDailyEnergyItemResponseModel
- All Implemented Interfaces:
EnergyItemResponseModel<GMeasurementItemResponseModel>
public record GDailyEnergyItemResponseModel(ZonedDateTime timestampStart, ZonedDateTime timestampEnd, @Nullable List<GMeasurementItemResponseModel> measurement)
extends Record
implements EnergyItemResponseModel<GMeasurementItemResponseModel>
-
Constructor Summary
ConstructorsConstructorDescriptionGDailyEnergyItemResponseModel(ZonedDateTime timestampStart, ZonedDateTime timestampEnd, List<GMeasurementItemResponseModel> measurement) Creates an instance of aGDailyEnergyItemResponseModelrecord 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 themeasurementrecord component.Returns the value of thetimestampEndrecord component.Returns the value of thetimestampStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GDailyEnergyItemResponseModel
public GDailyEnergyItemResponseModel(ZonedDateTime timestampStart, ZonedDateTime timestampEnd, @Nullable List<GMeasurementItemResponseModel> measurement) Creates an instance of aGDailyEnergyItemResponseModelrecord class.- Parameters:
timestampStart- the value for thetimestampStartrecord componenttimestampEnd- the value for thetimestampEndrecord componentmeasurement- the value for themeasurementrecord 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). -
timestampStart
Returns the value of thetimestampStartrecord component.- Specified by:
timestampStartin interfaceEnergyItemResponseModel<GMeasurementItemResponseModel>- Returns:
- the value of the
timestampStartrecord component
-
timestampEnd
Returns the value of thetimestampEndrecord component.- Specified by:
timestampEndin interfaceEnergyItemResponseModel<GMeasurementItemResponseModel>- Returns:
- the value of the
timestampEndrecord component
-
measurement
Returns the value of themeasurementrecord component.- Specified by:
measurementin interfaceEnergyItemResponseModel<GMeasurementItemResponseModel>- Returns:
- the value of the
measurementrecord component
-