Record Class EMeasurementDetailItemResponseModel
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.be.fluvius.client.model.EMeasurementDetailItemResponseModel
- All Implemented Interfaces:
InjectionAndOfftakeMeasurementResponseModel,MeasurementResponseModel
public record EMeasurementDetailItemResponseModel(@Nullable String unit, @Nullable Double offtakeValue, ValidationState offtakeValidationState, @Nullable Double injectionValue, ValidationState injectionValidationState)
extends Record
implements InjectionAndOfftakeMeasurementResponseModel
-
Constructor Summary
ConstructorsConstructorDescriptionEMeasurementDetailItemResponseModel(String unit, Double offtakeValue, ValidationState offtakeValidationState, Double injectionValue, ValidationState injectionValidationState) Creates an instance of aEMeasurementDetailItemResponseModelrecord 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 theinjectionValidationStaterecord component.Returns the value of theinjectionValuerecord component.booleanbooleanReturns the value of theofftakeValidationStaterecord component.Returns the value of theofftakeValuerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface energy.eddie.regionconnector.be.fluvius.client.model.InjectionAndOfftakeMeasurementResponseModel
validationStates, value
-
Constructor Details
-
EMeasurementDetailItemResponseModel
public EMeasurementDetailItemResponseModel(@Nullable String unit, @Nullable Double offtakeValue, ValidationState offtakeValidationState, @Nullable Double injectionValue, ValidationState injectionValidationState) Creates an instance of aEMeasurementDetailItemResponseModelrecord class.- Parameters:
unit- the value for theunitrecord componentofftakeValue- the value for theofftakeValuerecord componentofftakeValidationState- the value for theofftakeValidationStaterecord componentinjectionValue- the value for theinjectionValuerecord componentinjectionValidationState- the value for theinjectionValidationStaterecord component
-
-
Method Details
-
offtakeValue
Returns the value of theofftakeValuerecord component.- Specified by:
offtakeValuein interfaceMeasurementResponseModel- Returns:
- the value of the
offtakeValuerecord component
-
isOfftakePresent
public boolean isOfftakePresent()- Specified by:
isOfftakePresentin interfaceMeasurementResponseModel
-
injectionValue
Returns the value of theinjectionValuerecord component.- Specified by:
injectionValuein interfaceInjectionAndOfftakeMeasurementResponseModel- Returns:
- the value of the
injectionValuerecord component
-
isInjectionPresent
public boolean isInjectionPresent()- Specified by:
isInjectionPresentin interfaceInjectionAndOfftakeMeasurementResponseModel- Specified by:
isInjectionPresentin interfaceMeasurementResponseModel
-
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). -
unit
Returns the value of theunitrecord component.- Specified by:
unitin interfaceMeasurementResponseModel- Returns:
- the value of the
unitrecord component
-
offtakeValidationState
Returns the value of theofftakeValidationStaterecord component.- Specified by:
offtakeValidationStatein interfaceMeasurementResponseModel- Returns:
- the value of the
offtakeValidationStaterecord component
-
injectionValidationState
Returns the value of theinjectionValidationStaterecord component.- Specified by:
injectionValidationStatein interfaceInjectionAndOfftakeMeasurementResponseModel- Returns:
- the value of the
injectionValidationStaterecord component
-