Record Class GMeasurementItemResponseModel
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.be.fluvius.client.model.GMeasurementItemResponseModel
- All Implemented Interfaces:
MeasurementResponseModel
public record GMeasurementItemResponseModel(@Nullable String unit, @Nullable Double offtakeValue, ValidationState offtakeValidationState, @Nullable String offtakeUsedGCF)
extends Record
implements MeasurementResponseModel
-
Constructor Summary
ConstructorsConstructorDescriptionGMeasurementItemResponseModel(String unit, Double offtakeValue, ValidationState offtakeValidationState, String offtakeUsedGCF) Creates an instance of aGMeasurementItemResponseModelrecord 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.booleanReturns the value of theofftakeUsedGCFrecord component.Returns 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.MeasurementResponseModel
isInjectionPresent, validationStates, value
-
Constructor Details
-
GMeasurementItemResponseModel
public GMeasurementItemResponseModel(@Nullable String unit, @Nullable Double offtakeValue, ValidationState offtakeValidationState, @Nullable String offtakeUsedGCF) Creates an instance of aGMeasurementItemResponseModelrecord class.- Parameters:
unit- the value for theunitrecord componentofftakeValue- the value for theofftakeValuerecord componentofftakeValidationState- the value for theofftakeValidationStaterecord componentofftakeUsedGCF- the value for theofftakeUsedGCFrecord 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
-
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
-
offtakeUsedGCF
Returns the value of theofftakeUsedGCFrecord component.- Returns:
- the value of the
offtakeUsedGCFrecord component
-