Record Class SimulatedMeterReading
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.simulation.dtos.SimulatedMeterReading
public record SimulatedMeterReading(String connectionId, String dataNeedId, String permissionId, String meteringPoint, ZonedDateTime startDateTime, String meteringInterval, List<Measurement> measurements)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSimulatedMeterReading(String connectionId, String dataNeedId, String permissionId, String meteringPoint, ZonedDateTime startDateTime, String meteringInterval, List<Measurement> measurements) Creates an instance of aSimulatedMeterReadingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionIdrecord component.Returns the value of thedataNeedIdrecord 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 themeasurementsrecord component.Returns the value of themeteringIntervalrecord component.Returns the value of themeteringPointrecord component.Returns the value of thepermissionIdrecord component.Returns the value of thestartDateTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulatedMeterReading
public SimulatedMeterReading(String connectionId, String dataNeedId, String permissionId, String meteringPoint, ZonedDateTime startDateTime, String meteringInterval, List<Measurement> measurements) Creates an instance of aSimulatedMeterReadingrecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentdataNeedId- the value for thedataNeedIdrecord componentpermissionId- the value for thepermissionIdrecord componentmeteringPoint- 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). -
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
dataNeedId
Returns the value of thedataNeedIdrecord component.- Returns:
- the value of the
dataNeedIdrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Returns:
- the value of the
permissionIdrecord component
-
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
-