Record Class SimulatedValidatedHistoricalData
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.simulation.dtos.SimulatedValidatedHistoricalData
public record SimulatedValidatedHistoricalData(String meteringPoint, ZonedDateTime startDateTime, String meteringInterval, List<Measurement> measurements)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSimulatedValidatedHistoricalData(String meteringPoint, ZonedDateTime startDateTime, String meteringInterval, List<Measurement> measurements) Creates an instance of aSimulatedValidatedHistoricalDatarecord 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 themeasurementsrecord component.Returns the value of themeteringIntervalrecord component.Returns the value of themeteringPointrecord component.Returns the value of thestartDateTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulatedValidatedHistoricalData
public SimulatedValidatedHistoricalData(String meteringPoint, ZonedDateTime startDateTime, String meteringInterval, List<Measurement> measurements) Creates an instance of aSimulatedValidatedHistoricalDatarecord class.- Parameters:
meteringPoint- the value for themeteringPointrecord componentstartDateTime- the value for thestartDateTimerecord componentmeteringInterval- the value for themeteringIntervalrecord componentmeasurements- the value for themeasurementsrecord 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). -
meteringPoint
Returns the value of themeteringPointrecord component.- Returns:
- the value of the
meteringPointrecord component
-
startDateTime
Returns the value of thestartDateTimerecord component.- Returns:
- the value of the
startDateTimerecord component
-
meteringInterval
Returns the value of themeteringIntervalrecord component.- Returns:
- the value of the
meteringIntervalrecord component
-
measurements
Returns the value of themeasurementsrecord component.- Returns:
- the value of the
measurementsrecord component
-