Record Class Agribalyse
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.Agribalyse
-
Constructor Summary
ConstructorsConstructorDescriptionAgribalyse(String agribalyseProxyFoodCode, String agribalyseFoodCode, Double co2Agriculture, Integer co2Consumption, Double co2Distribution, Double co2Packaging, Double co2Processing, Double co2Total, Double co2Transportation) Creates an instance of aAgribalyserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagribalyseFoodCoderecord component.Returns the value of theagribalyseProxyFoodCoderecord component.Returns the value of theco2Agriculturerecord component.Returns the value of theco2Consumptionrecord component.Returns the value of theco2Distributionrecord component.Returns the value of theco2Packagingrecord component.Returns the value of theco2Processingrecord component.co2Total()Returns the value of theco2Totalrecord component.Returns the value of theco2Transportationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Agribalyse
public Agribalyse(String agribalyseProxyFoodCode, String agribalyseFoodCode, Double co2Agriculture, Integer co2Consumption, Double co2Distribution, Double co2Packaging, Double co2Processing, Double co2Total, Double co2Transportation) Creates an instance of aAgribalyserecord class.- Parameters:
agribalyseProxyFoodCode- the value for theagribalyseProxyFoodCoderecord componentagribalyseFoodCode- the value for theagribalyseFoodCoderecord componentco2Agriculture- the value for theco2Agriculturerecord componentco2Consumption- the value for theco2Consumptionrecord componentco2Distribution- the value for theco2Distributionrecord componentco2Packaging- the value for theco2Packagingrecord componentco2Processing- the value for theco2Processingrecord componentco2Total- the value for theco2Totalrecord componentco2Transportation- the value for theco2Transportationrecord 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). -
agribalyseProxyFoodCode
Returns the value of theagribalyseProxyFoodCoderecord component.- Returns:
- the value of the
agribalyseProxyFoodCoderecord component
-
agribalyseFoodCode
Returns the value of theagribalyseFoodCoderecord component.- Returns:
- the value of the
agribalyseFoodCoderecord component
-
co2Agriculture
Returns the value of theco2Agriculturerecord component.- Returns:
- the value of the
co2Agriculturerecord component
-
co2Consumption
Returns the value of theco2Consumptionrecord component.- Returns:
- the value of the
co2Consumptionrecord component
-
co2Distribution
Returns the value of theco2Distributionrecord component.- Returns:
- the value of the
co2Distributionrecord component
-
co2Packaging
Returns the value of theco2Packagingrecord component.- Returns:
- the value of the
co2Packagingrecord component
-
co2Processing
Returns the value of theco2Processingrecord component.- Returns:
- the value of the
co2Processingrecord component
-
co2Total
Returns the value of theco2Totalrecord component.- Returns:
- the value of the
co2Totalrecord component
-
co2Transportation
Returns the value of theco2Transportationrecord component.- Returns:
- the value of the
co2Transportationrecord component
-