Record Class ElectricityMeterResponseModel
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.be.fluvius.client.model.ElectricityMeterResponseModel
- All Implemented Interfaces:
MeterResponseModel
public record ElectricityMeterResponseModel(@Nullable Integer seqNumber, @Nullable String meterID, @Nullable List<EDailyEnergyItemResponseModel> dailyEnergy, @Nullable List<EQuarterHourlyEnergyItemResponseModel> quarterHourlyEnergy)
extends Record
implements MeterResponseModel
-
Constructor Summary
ConstructorsConstructorDescriptionElectricityMeterResponseModel(Integer seqNumber, String meterID, List<EDailyEnergyItemResponseModel> dailyEnergy, List<EQuarterHourlyEnergyItemResponseModel> quarterHourlyEnergy) Creates an instance of aElectricityMeterResponseModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedailyEnergyrecord component.final booleanIndicates whether some other object is "equal to" this one.List<? extends EnergyItemResponseModel<? extends MeasurementResponseModel>> getByGranularity(Granularity granularity) final inthashCode()Returns a hash code value for this object.meterID()Returns the value of themeterIDrecord component.Returns the value of thequarterHourlyEnergyrecord component.Returns the value of theseqNumberrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface energy.eddie.regionconnector.be.fluvius.client.model.MeterResponseModel
hasInjection, hasOfftake
-
Constructor Details
-
ElectricityMeterResponseModel
public ElectricityMeterResponseModel(@Nullable Integer seqNumber, @Nullable String meterID, @Nullable List<EDailyEnergyItemResponseModel> dailyEnergy, @Nullable List<EQuarterHourlyEnergyItemResponseModel> quarterHourlyEnergy) Creates an instance of aElectricityMeterResponseModelrecord class.- Parameters:
seqNumber- the value for theseqNumberrecord componentmeterID- the value for themeterIDrecord componentdailyEnergy- the value for thedailyEnergyrecord componentquarterHourlyEnergy- the value for thequarterHourlyEnergyrecord component
-
-
Method Details
-
getByGranularity
@Nullable public List<? extends EnergyItemResponseModel<? extends MeasurementResponseModel>> getByGranularity(Granularity granularity) - Specified by:
getByGranularityin interfaceMeterResponseModel
-
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). -
seqNumber
Returns the value of theseqNumberrecord component.- Specified by:
seqNumberin interfaceMeterResponseModel- Returns:
- the value of the
seqNumberrecord component
-
meterID
Returns the value of themeterIDrecord component.- Specified by:
meterIDin interfaceMeterResponseModel- Returns:
- the value of the
meterIDrecord component
-
dailyEnergy
Returns the value of thedailyEnergyrecord component.- Returns:
- the value of the
dailyEnergyrecord component
-
quarterHourlyEnergy
Returns the value of thequarterHourlyEnergyrecord component.- Returns:
- the value of the
quarterHourlyEnergyrecord component
-