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

public record ProductPrice(int id, int productId, int locationId, int proofId, OpenPricesProduct product, OpenPricesProductLocation location, OpenPriceProof proof, String type, String productCode, String productName, String categoryTag, List<String> labelsTags, List<String> originsTags, double price, boolean priceIsDiscounted, Double priceWithoutDiscount, String discountType, Double pricePer, String currency, long locationOsmId, String locationOsmType, LocalDate date, Integer receiptQuantity, String owner, String source, LocalDateTime created, LocalDateTime updated) extends Record
  • Constructor Details

    • ProductPrice

      public ProductPrice(int id, int productId, int locationId, int proofId, OpenPricesProduct product, OpenPricesProductLocation location, OpenPriceProof proof, String type, String productCode, String productName, String categoryTag, List<String> labelsTags, List<String> originsTags, double price, boolean priceIsDiscounted, Double priceWithoutDiscount, String discountType, Double pricePer, String currency, long locationOsmId, String locationOsmType, LocalDate date, Integer receiptQuantity, String owner, String source, LocalDateTime created, LocalDateTime updated)
      Creates an instance of a ProductPrice record class.
      Parameters:
      id - the value for the id record component
      productId - the value for the productId record component
      locationId - the value for the locationId record component
      proofId - the value for the proofId record component
      product - the value for the product record component
      location - the value for the location record component
      proof - the value for the proof record component
      type - the value for the type record component
      productCode - the value for the productCode record component
      productName - the value for the productName record component
      categoryTag - the value for the categoryTag record component
      labelsTags - the value for the labelsTags record component
      originsTags - the value for the originsTags record component
      price - the value for the price record component
      priceIsDiscounted - the value for the priceIsDiscounted record component
      priceWithoutDiscount - the value for the priceWithoutDiscount record component
      discountType - the value for the discountType record component
      pricePer - the value for the pricePer record component
      currency - the value for the currency record component
      locationOsmId - the value for the locationOsmId record component
      locationOsmType - the value for the locationOsmType record component
      date - the value for the date record component
      receiptQuantity - the value for the receiptQuantity record component
      owner - the value for the owner record component
      source - the value for the source 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
    • productId

      public int productId()
      Returns the value of the productId record component.
      Returns:
      the value of the productId record component
    • locationId

      public int locationId()
      Returns the value of the locationId record component.
      Returns:
      the value of the locationId record component
    • proofId

      public int proofId()
      Returns the value of the proofId record component.
      Returns:
      the value of the proofId record component
    • product

      public OpenPricesProduct product()
      Returns the value of the product record component.
      Returns:
      the value of the product record component
    • location

      public OpenPricesProductLocation location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • proof

      public OpenPriceProof proof()
      Returns the value of the proof record component.
      Returns:
      the value of the proof record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • productCode

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

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

      public String categoryTag()
      Returns the value of the categoryTag record component.
      Returns:
      the value of the categoryTag record component
    • labelsTags

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

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

      public double price()
      Returns the value of the price record component.
      Returns:
      the value of the price record component
    • priceIsDiscounted

      public boolean priceIsDiscounted()
      Returns the value of the priceIsDiscounted record component.
      Returns:
      the value of the priceIsDiscounted record component
    • priceWithoutDiscount

      public Double priceWithoutDiscount()
      Returns the value of the priceWithoutDiscount record component.
      Returns:
      the value of the priceWithoutDiscount record component
    • discountType

      public String discountType()
      Returns the value of the discountType record component.
      Returns:
      the value of the discountType record component
    • pricePer

      public Double pricePer()
      Returns the value of the pricePer record component.
      Returns:
      the value of the pricePer record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • locationOsmId

      public long locationOsmId()
      Returns the value of the locationOsmId record component.
      Returns:
      the value of the locationOsmId record component
    • locationOsmType

      public String locationOsmType()
      Returns the value of the locationOsmType record component.
      Returns:
      the value of the locationOsmType record component
    • date

      public LocalDate date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • receiptQuantity

      public Integer receiptQuantity()
      Returns the value of the receiptQuantity record component.
      Returns:
      the value of the receiptQuantity record component
    • owner

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

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source 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