Record Class MeterReading.Point
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.readings.MeterReading.Point
- Enclosing class:
MeterReading
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegranularityrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thelinkyLikelihoodIndexrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Point
public Point(Double value, ZonedDateTime timestamp, Optional<Duration> granularity, Optional<String> kind, Optional<Double> linkyLikelihoodIndex, Optional<Double> additionalStatus) Creates an instance of aPointrecord class.- Parameters:
value- the value for thevaluerecord componenttimestamp- the value for thetimestamprecord componentgranularity- the value for thegranularityrecord componentkind- the value for thekindrecord componentlinkyLikelihoodIndex- the value for thelinkyLikelihoodIndexrecord componentadditionalStatus- the value for theadditionalStatusrecord 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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
granularity
Returns the value of thegranularityrecord component.- Returns:
- the value of the
granularityrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
linkyLikelihoodIndex
Returns the value of thelinkyLikelihoodIndexrecord component.- Returns:
- the value of the
linkyLikelihoodIndexrecord component
-
additionalStatus
Returns the value of theadditionalStatusrecord component.- Returns:
- the value of the
additionalStatusrecord component
-