Package energy.eddie.aiida.dtos.record
Record Class AiidaRecordValueDto
java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.record.AiidaRecordValueDto
public record AiidaRecordValueDto(String rawTag, ObisCode obisCode, String rawValue, UnitOfMeasurement rawUnit, String value, UnitOfMeasurement unit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAiidaRecordValueDto(String rawTag, ObisCode obisCode, String rawValue, UnitOfMeasurement rawUnit, String value, UnitOfMeasurement unit) Creates an instance of aAiidaRecordValueDtorecord 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.obisCode()Returns the value of theobisCoderecord component.rawTag()Returns the value of therawTagrecord component.rawUnit()Returns the value of therawUnitrecord component.rawValue()Returns the value of therawValuerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
AiidaRecordValueDto
public AiidaRecordValueDto(String rawTag, ObisCode obisCode, String rawValue, UnitOfMeasurement rawUnit, String value, UnitOfMeasurement unit) Creates an instance of aAiidaRecordValueDtorecord class.- Parameters:
rawTag- the value for therawTagrecord componentobisCode- the value for theobisCoderecord componentrawValue- the value for therawValuerecord componentrawUnit- the value for therawUnitrecord componentvalue- the value for thevaluerecord componentunit- the value for theunitrecord 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). -
rawTag
Returns the value of therawTagrecord component.- Returns:
- the value of the
rawTagrecord component
-
obisCode
Returns the value of theobisCoderecord component.- Returns:
- the value of the
obisCoderecord component
-
rawValue
Returns the value of therawValuerecord component.- Returns:
- the value of the
rawValuerecord component
-
rawUnit
Returns the value of therawUnitrecord component.- Returns:
- the value of the
rawUnitrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-