Record Class ProductPrice
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 Summary
ConstructorsConstructorDescriptionProductPrice(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 aProductPricerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategoryTagrecord component.created()Returns the value of thecreatedrecord component.currency()Returns the value of thecurrencyrecord component.date()Returns the value of thedaterecord component.Returns the value of thediscountTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.Returns the value of thelabelsTagsrecord component.location()Returns the value of thelocationrecord component.intReturns the value of thelocationIdrecord component.longReturns the value of thelocationOsmIdrecord component.Returns the value of thelocationOsmTyperecord component.Returns the value of theoriginsTagsrecord component.owner()Returns the value of theownerrecord component.doubleprice()Returns the value of thepricerecord component.booleanReturns the value of thepriceIsDiscountedrecord component.pricePer()Returns the value of thepricePerrecord component.Returns the value of thepriceWithoutDiscountrecord component.product()Returns the value of theproductrecord component.Returns the value of theproductCoderecord component.intReturns the value of theproductIdrecord component.Returns the value of theproductNamerecord component.proof()Returns the value of theproofrecord component.intproofId()Returns the value of theproofIdrecord component.Returns the value of thereceiptQuantityrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.updated()Returns the value of theupdatedrecord component.
-
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 aProductPricerecord class.- Parameters:
id- the value for theidrecord componentproductId- the value for theproductIdrecord componentlocationId- the value for thelocationIdrecord componentproofId- the value for theproofIdrecord componentproduct- the value for theproductrecord componentlocation- the value for thelocationrecord componentproof- the value for theproofrecord componenttype- the value for thetyperecord componentproductCode- the value for theproductCoderecord componentproductName- the value for theproductNamerecord componentcategoryTag- the value for thecategoryTagrecord componentlabelsTags- the value for thelabelsTagsrecord componentoriginsTags- the value for theoriginsTagsrecord componentprice- the value for thepricerecord componentpriceIsDiscounted- the value for thepriceIsDiscountedrecord componentpriceWithoutDiscount- the value for thepriceWithoutDiscountrecord componentdiscountType- the value for thediscountTyperecord componentpricePer- the value for thepricePerrecord componentcurrency- the value for thecurrencyrecord componentlocationOsmId- the value for thelocationOsmIdrecord componentlocationOsmType- the value for thelocationOsmTyperecord componentdate- the value for thedaterecord componentreceiptQuantity- the value for thereceiptQuantityrecord componentowner- the value for theownerrecord componentsource- the value for thesourcerecord componentcreated- the value for thecreatedrecord componentupdated- the value for theupdatedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
productId
public int productId()Returns the value of theproductIdrecord component.- Returns:
- the value of the
productIdrecord component
-
locationId
public int locationId()Returns the value of thelocationIdrecord component.- Returns:
- the value of the
locationIdrecord component
-
proofId
public int proofId()Returns the value of theproofIdrecord component.- Returns:
- the value of the
proofIdrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
proof
Returns the value of theproofrecord component.- Returns:
- the value of the
proofrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
productCode
Returns the value of theproductCoderecord component.- Returns:
- the value of the
productCoderecord component
-
productName
Returns the value of theproductNamerecord component.- Returns:
- the value of the
productNamerecord component
-
categoryTag
Returns the value of thecategoryTagrecord component.- Returns:
- the value of the
categoryTagrecord component
-
labelsTags
Returns the value of thelabelsTagsrecord component.- Returns:
- the value of the
labelsTagsrecord component
-
originsTags
Returns the value of theoriginsTagsrecord component.- Returns:
- the value of the
originsTagsrecord component
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
priceIsDiscounted
public boolean priceIsDiscounted()Returns the value of thepriceIsDiscountedrecord component.- Returns:
- the value of the
priceIsDiscountedrecord component
-
priceWithoutDiscount
Returns the value of thepriceWithoutDiscountrecord component.- Returns:
- the value of the
priceWithoutDiscountrecord component
-
discountType
Returns the value of thediscountTyperecord component.- Returns:
- the value of the
discountTyperecord component
-
pricePer
Returns the value of thepricePerrecord component.- Returns:
- the value of the
pricePerrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
locationOsmId
public long locationOsmId()Returns the value of thelocationOsmIdrecord component.- Returns:
- the value of the
locationOsmIdrecord component
-
locationOsmType
Returns the value of thelocationOsmTyperecord component.- Returns:
- the value of the
locationOsmTyperecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
receiptQuantity
Returns the value of thereceiptQuantityrecord component.- Returns:
- the value of the
receiptQuantityrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
updated
Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-