Record Class TimeSeries
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.TimeSeries
public record TimeSeries(String meteringPointEAN, Granularity resolutionDuration, ZonedDateTime start, ZonedDateTime end, String productType, String unitType, String readingType, List<Observation> observations)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTimeSeries(String meteringPointEAN, Granularity resolutionDuration, ZonedDateTime start, ZonedDateTime end, String productType, String unitType, String readingType, List<Observation> observations) Creates an instance of aTimeSeriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord 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 themeteringPointEANrecord component.Returns the value of theobservationsrecord component.Returns the value of theproductTyperecord component.Returns the value of thereadingTyperecord component.Returns the value of theresolutionDurationrecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.unitType()Returns the value of theunitTyperecord component.
-
Constructor Details
-
TimeSeries
public TimeSeries(String meteringPointEAN, Granularity resolutionDuration, ZonedDateTime start, ZonedDateTime end, String productType, String unitType, String readingType, List<Observation> observations) Creates an instance of aTimeSeriesrecord class.- Parameters:
meteringPointEAN- the value for themeteringPointEANrecord componentresolutionDuration- the value for theresolutionDurationrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentproductType- the value for theproductTyperecord componentunitType- the value for theunitTyperecord componentreadingType- the value for thereadingTyperecord componentobservations- the value for theobservationsrecord 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). -
meteringPointEAN
Returns the value of themeteringPointEANrecord component.- Returns:
- the value of the
meteringPointEANrecord component
-
resolutionDuration
Returns the value of theresolutionDurationrecord component.- Returns:
- the value of the
resolutionDurationrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
productType
Returns the value of theproductTyperecord component.- Returns:
- the value of the
productTyperecord component
-
unitType
Returns the value of theunitTyperecord component.- Returns:
- the value of the
unitTyperecord component
-
readingType
Returns the value of thereadingTyperecord component.- Returns:
- the value of the
readingTyperecord component
-
observations
Returns the value of theobservationsrecord component.- Returns:
- the value of the
observationsrecord component
-