Record Class GasMeterResponseModel
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.be.fluvius.client.model.GasMeterResponseModel
- All Implemented Interfaces:
MeterResponseModel
public record GasMeterResponseModel(@Nullable Integer seqNumber, @Nullable String meterID, @Nullable List<GDailyEnergyItemResponseModel> dailyEnergy, @Nullable List<GHourlyEnergyItemResponseModel> hourlyEnergy)
extends Record
implements MeterResponseModel
-
Constructor Summary
ConstructorsConstructorDescriptionGasMeterResponseModel(Integer seqNumber, String meterID, List<GDailyEnergyItemResponseModel> dailyEnergy, List<GHourlyEnergyItemResponseModel> hourlyEnergy) Creates an instance of aGasMeterResponseModelrecord 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.Returns the value of thehourlyEnergyrecord component.meterID()Returns the value of themeterIDrecord 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
-
GasMeterResponseModel
public GasMeterResponseModel(@Nullable Integer seqNumber, @Nullable String meterID, @Nullable List<GDailyEnergyItemResponseModel> dailyEnergy, @Nullable List<GHourlyEnergyItemResponseModel> hourlyEnergy) Creates an instance of aGasMeterResponseModelrecord class.- Parameters:
seqNumber- the value for theseqNumberrecord componentmeterID- the value for themeterIDrecord componentdailyEnergy- the value for thedailyEnergyrecord componenthourlyEnergy- the value for thehourlyEnergyrecord 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
-
hourlyEnergy
Returns the value of thehourlyEnergyrecord component.- Returns:
- the value of the
hourlyEnergyrecord component
-