java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.openprices.OpenPricesProduct

public record OpenPricesProduct(int id, String code, String source, LocalDateTime sourceLastSynced, String productName, String imageUrl, String productQuantity, String productQuantityUnit, List<String> categoriesTags, String brands, List<String> brandsTags, List<String> labelsTags, String nutriscoreGrade, String ecoscoreGrade, String novaGroup, int uniqueScansN, int priceCount, int priceCurrencyCount, int locationCount, int locationTypeOsmCountryCount, int userCount, int proofCount, LocalDateTime created, LocalDateTime updated) extends Record
  • Constructor Details

    • OpenPricesProduct

      public OpenPricesProduct(int id, String code, String source, LocalDateTime sourceLastSynced, String productName, String imageUrl, String productQuantity, String productQuantityUnit, List<String> categoriesTags, String brands, List<String> brandsTags, List<String> labelsTags, String nutriscoreGrade, String ecoscoreGrade, String novaGroup, int uniqueScansN, int priceCount, int priceCurrencyCount, int locationCount, int locationTypeOsmCountryCount, int userCount, int proofCount, LocalDateTime created, LocalDateTime updated)
      Creates an instance of a OpenPricesProduct record class.
      Parameters:
      id - the value for the id record component
      code - the value for the code record component
      source - the value for the source record component
      sourceLastSynced - the value for the sourceLastSynced record component
      productName - the value for the productName record component
      imageUrl - the value for the imageUrl record component
      productQuantity - the value for the productQuantity record component
      productQuantityUnit - the value for the productQuantityUnit record component
      categoriesTags - the value for the categoriesTags record component
      brands - the value for the brands record component
      brandsTags - the value for the brandsTags record component
      labelsTags - the value for the labelsTags record component
      nutriscoreGrade - the value for the nutriscoreGrade record component
      ecoscoreGrade - the value for the ecoscoreGrade record component
      novaGroup - the value for the novaGroup record component
      uniqueScansN - the value for the uniqueScansN record component
      priceCount - the value for the priceCount record component
      priceCurrencyCount - the value for the priceCurrencyCount record component
      locationCount - the value for the locationCount record component
      locationTypeOsmCountryCount - the value for the locationTypeOsmCountryCount record component
      userCount - the value for the userCount record component
      proofCount - the value for the proofCount record component
      created - the value for the created record component
      updated - the value for the updated 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • sourceLastSynced

      public LocalDateTime sourceLastSynced()
      Returns the value of the sourceLastSynced record component.
      Returns:
      the value of the sourceLastSynced record component
    • productName

      public String productName()
      Returns the value of the productName record component.
      Returns:
      the value of the productName record component
    • imageUrl

      public String imageUrl()
      Returns the value of the imageUrl record component.
      Returns:
      the value of the imageUrl record component
    • productQuantity

      public String productQuantity()
      Returns the value of the productQuantity record component.
      Returns:
      the value of the productQuantity record component
    • productQuantityUnit

      public String productQuantityUnit()
      Returns the value of the productQuantityUnit record component.
      Returns:
      the value of the productQuantityUnit record component
    • categoriesTags

      public List<String> categoriesTags()
      Returns the value of the categoriesTags record component.
      Returns:
      the value of the categoriesTags record component
    • brands

      public String brands()
      Returns the value of the brands record component.
      Returns:
      the value of the brands record component
    • brandsTags

      public List<String> brandsTags()
      Returns the value of the brandsTags record component.
      Returns:
      the value of the brandsTags record component
    • labelsTags

      public List<String> labelsTags()
      Returns the value of the labelsTags record component.
      Returns:
      the value of the labelsTags record component
    • nutriscoreGrade

      public String nutriscoreGrade()
      Returns the value of the nutriscoreGrade record component.
      Returns:
      the value of the nutriscoreGrade record component
    • ecoscoreGrade

      public String ecoscoreGrade()
      Returns the value of the ecoscoreGrade record component.
      Returns:
      the value of the ecoscoreGrade record component
    • novaGroup

      public String novaGroup()
      Returns the value of the novaGroup record component.
      Returns:
      the value of the novaGroup record component
    • uniqueScansN

      public int uniqueScansN()
      Returns the value of the uniqueScansN record component.
      Returns:
      the value of the uniqueScansN record component
    • priceCount

      public int priceCount()
      Returns the value of the priceCount record component.
      Returns:
      the value of the priceCount record component
    • priceCurrencyCount

      public int priceCurrencyCount()
      Returns the value of the priceCurrencyCount record component.
      Returns:
      the value of the priceCurrencyCount record component
    • locationCount

      public int locationCount()
      Returns the value of the locationCount record component.
      Returns:
      the value of the locationCount record component
    • locationTypeOsmCountryCount

      public int locationTypeOsmCountryCount()
      Returns the value of the locationTypeOsmCountryCount record component.
      Returns:
      the value of the locationTypeOsmCountryCount record component
    • userCount

      public int userCount()
      Returns the value of the userCount record component.
      Returns:
      the value of the userCount record component
    • proofCount

      public int proofCount()
      Returns the value of the proofCount record component.
      Returns:
      the value of the proofCount record component
    • created

      public LocalDateTime created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • updated

      public LocalDateTime updated()
      Returns the value of the updated record component.
      Returns:
      the value of the updated record component