java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.Agribalyse

public record Agribalyse(String agribalyseProxyFoodCode, String agribalyseFoodCode, Double co2Agriculture, Integer co2Consumption, Double co2Distribution, Double co2Packaging, Double co2Processing, Double co2Total, Double co2Transportation) extends Record
  • 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 a Agribalyse record class.
      Parameters:
      agribalyseProxyFoodCode - the value for the agribalyseProxyFoodCode record component
      agribalyseFoodCode - the value for the agribalyseFoodCode record component
      co2Agriculture - the value for the co2Agriculture record component
      co2Consumption - the value for the co2Consumption record component
      co2Distribution - the value for the co2Distribution record component
      co2Packaging - the value for the co2Packaging record component
      co2Processing - the value for the co2Processing record component
      co2Total - the value for the co2Total record component
      co2Transportation - the value for the co2Transportation record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • agribalyseProxyFoodCode

      public String agribalyseProxyFoodCode()
      Returns the value of the agribalyseProxyFoodCode record component.
      Returns:
      the value of the agribalyseProxyFoodCode record component
    • agribalyseFoodCode

      public String agribalyseFoodCode()
      Returns the value of the agribalyseFoodCode record component.
      Returns:
      the value of the agribalyseFoodCode record component
    • co2Agriculture

      public Double co2Agriculture()
      Returns the value of the co2Agriculture record component.
      Returns:
      the value of the co2Agriculture record component
    • co2Consumption

      public Integer co2Consumption()
      Returns the value of the co2Consumption record component.
      Returns:
      the value of the co2Consumption record component
    • co2Distribution

      public Double co2Distribution()
      Returns the value of the co2Distribution record component.
      Returns:
      the value of the co2Distribution record component
    • co2Packaging

      public Double co2Packaging()
      Returns the value of the co2Packaging record component.
      Returns:
      the value of the co2Packaging record component
    • co2Processing

      public Double co2Processing()
      Returns the value of the co2Processing record component.
      Returns:
      the value of the co2Processing record component
    • co2Total

      public Double co2Total()
      Returns the value of the co2Total record component.
      Returns:
      the value of the co2Total record component
    • co2Transportation

      public Double co2Transportation()
      Returns the value of the co2Transportation record component.
      Returns:
      the value of the co2Transportation record component