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 aAgribalyse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagribalyseFoodCode
record component.Returns the value of theagribalyseProxyFoodCode
record component.Returns the value of theco2Agriculture
record component.Returns the value of theco2Consumption
record component.Returns the value of theco2Distribution
record component.Returns the value of theco2Packaging
record component.Returns the value of theco2Processing
record component.co2Total()
Returns the value of theco2Total
record component.Returns the value of theco2Transportation
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aAgribalyse
record class.- Parameters:
agribalyseProxyFoodCode
- the value for theagribalyseProxyFoodCode
record componentagribalyseFoodCode
- the value for theagribalyseFoodCode
record componentco2Agriculture
- the value for theco2Agriculture
record componentco2Consumption
- the value for theco2Consumption
record componentco2Distribution
- the value for theco2Distribution
record componentco2Packaging
- the value for theco2Packaging
record componentco2Processing
- the value for theco2Processing
record componentco2Total
- the value for theco2Total
record componentco2Transportation
- the value for theco2Transportation
record 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 theagribalyseProxyFoodCode
record component.- Returns:
- the value of the
agribalyseProxyFoodCode
record component
-
agribalyseFoodCode
Returns the value of theagribalyseFoodCode
record component.- Returns:
- the value of the
agribalyseFoodCode
record component
-
co2Agriculture
Returns the value of theco2Agriculture
record component.- Returns:
- the value of the
co2Agriculture
record component
-
co2Consumption
Returns the value of theco2Consumption
record component.- Returns:
- the value of the
co2Consumption
record component
-
co2Distribution
Returns the value of theco2Distribution
record component.- Returns:
- the value of the
co2Distribution
record component
-
co2Packaging
Returns the value of theco2Packaging
record component.- Returns:
- the value of the
co2Packaging
record component
-
co2Processing
Returns the value of theco2Processing
record component.- Returns:
- the value of the
co2Processing
record component
-
co2Total
Returns the value of theco2Total
record component.- Returns:
- the value of the
co2Total
record component
-
co2Transportation
Returns the value of theco2Transportation
record component.- Returns:
- the value of the
co2Transportation
record component
-