Record Class MicroTeleinfoV3DataField
java.lang.Object
java.lang.Record
energy.eddie.aiida.adapters.datasource.fr.transformer.MicroTeleinfoV3DataField
public record MicroTeleinfoV3DataField(String raw, Object value, UnitOfMeasurement unitOfMeasurement, ObisCode mappedObisCode, Optional<MicroTeleinfoV3Timestamp> timestamp)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMicroTeleinfoV3DataField(String raw, Object value, UnitOfMeasurement unitOfMeasurement, ObisCode mappedObisCode, Optional<MicroTeleinfoV3Timestamp> timestamp) Creates an instance of aMicroTeleinfoV3DataFieldrecord 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 themappedObisCoderecord component.raw()Returns the value of therawrecord component.sanitizedValue(String key) Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunitOfMeasurementrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MicroTeleinfoV3DataField
public MicroTeleinfoV3DataField(String raw, Object value, UnitOfMeasurement unitOfMeasurement, ObisCode mappedObisCode, Optional<MicroTeleinfoV3Timestamp> timestamp) Creates an instance of aMicroTeleinfoV3DataFieldrecord class.- Parameters:
raw- the value for therawrecord componentvalue- the value for thevaluerecord componentunitOfMeasurement- the value for theunitOfMeasurementrecord componentmappedObisCode- the value for themappedObisCoderecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
sanitizedValue
-
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). -
raw
Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
unitOfMeasurement
Returns the value of theunitOfMeasurementrecord component.- Returns:
- the value of the
unitOfMeasurementrecord component
-
mappedObisCode
Returns the value of themappedObisCoderecord component.- Returns:
- the value of the
mappedObisCoderecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-