Record Class EtaPlusMeteredData.MeterReading
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.de.eta.providers.EtaPlusMeteredData.MeterReading
- Record Components:
timestamp- reading timestamp (UTC, per backend contract)value- measured valueunit- wire unit string (e.g."kWh","m³"); constant within a responsequality- wire status string; backend always emits"VALIDATED"on this endpointdirection- wire direction string; backend always emits"Consumption"or"Generation"
- Enclosing class:
EtaPlusMeteredData
public static record EtaPlusMeteredData.MeterReading(ZonedDateTime timestamp, Double value, String unit, String quality, String direction)
extends Record
One reading element from the ETA Plus historical-readings response.
-
Constructor Summary
ConstructorsConstructorDescriptionMeterReading(ZonedDateTime timestamp, Double value, String unit, String quality, String direction) Creates an instance of aMeterReadingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.quality()Returns the value of thequalityrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MeterReading
public MeterReading(ZonedDateTime timestamp, Double value, String unit, String quality, String direction) Creates an instance of aMeterReadingrecord class.
-
-
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). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
quality
Returns the value of thequalityrecord component.- Returns:
- the value of the
qualityrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-