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 aProductPrice
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategoryTag
record component.created()
Returns the value of thecreated
record component.currency()
Returns the value of thecurrency
record component.date()
Returns the value of thedate
record component.Returns the value of thediscountType
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.int
id()
Returns the value of theid
record component.Returns the value of thelabelsTags
record component.location()
Returns the value of thelocation
record component.int
Returns the value of thelocationId
record component.long
Returns the value of thelocationOsmId
record component.Returns the value of thelocationOsmType
record component.Returns the value of theoriginsTags
record component.owner()
Returns the value of theowner
record component.double
price()
Returns the value of theprice
record component.boolean
Returns the value of thepriceIsDiscounted
record component.pricePer()
Returns the value of thepricePer
record component.Returns the value of thepriceWithoutDiscount
record component.product()
Returns the value of theproduct
record component.Returns the value of theproductCode
record component.int
Returns the value of theproductId
record component.Returns the value of theproductName
record component.proof()
Returns the value of theproof
record component.int
proofId()
Returns the value of theproofId
record component.Returns the value of thereceiptQuantity
record component.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.updated()
Returns the value of theupdated
record 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 aProductPrice
record class.- Parameters:
id
- the value for theid
record componentproductId
- the value for theproductId
record componentlocationId
- the value for thelocationId
record componentproofId
- the value for theproofId
record componentproduct
- the value for theproduct
record componentlocation
- the value for thelocation
record componentproof
- the value for theproof
record componenttype
- the value for thetype
record componentproductCode
- the value for theproductCode
record componentproductName
- the value for theproductName
record componentcategoryTag
- the value for thecategoryTag
record componentlabelsTags
- the value for thelabelsTags
record componentoriginsTags
- the value for theoriginsTags
record componentprice
- the value for theprice
record componentpriceIsDiscounted
- the value for thepriceIsDiscounted
record componentpriceWithoutDiscount
- the value for thepriceWithoutDiscount
record componentdiscountType
- the value for thediscountType
record componentpricePer
- the value for thepricePer
record componentcurrency
- the value for thecurrency
record componentlocationOsmId
- the value for thelocationOsmId
record componentlocationOsmType
- the value for thelocationOsmType
record componentdate
- the value for thedate
record componentreceiptQuantity
- the value for thereceiptQuantity
record componentowner
- the value for theowner
record componentsource
- the value for thesource
record componentcreated
- the value for thecreated
record componentupdated
- the value for theupdated
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
productId
public int productId()Returns the value of theproductId
record component.- Returns:
- the value of the
productId
record component
-
locationId
public int locationId()Returns the value of thelocationId
record component.- Returns:
- the value of the
locationId
record component
-
proofId
public int proofId()Returns the value of theproofId
record component.- Returns:
- the value of the
proofId
record component
-
product
Returns the value of theproduct
record component.- Returns:
- the value of the
product
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
proof
Returns the value of theproof
record component.- Returns:
- the value of the
proof
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
productCode
Returns the value of theproductCode
record component.- Returns:
- the value of the
productCode
record component
-
productName
Returns the value of theproductName
record component.- Returns:
- the value of the
productName
record component
-
categoryTag
Returns the value of thecategoryTag
record component.- Returns:
- the value of the
categoryTag
record component
-
labelsTags
Returns the value of thelabelsTags
record component.- Returns:
- the value of the
labelsTags
record component
-
originsTags
Returns the value of theoriginsTags
record component.- Returns:
- the value of the
originsTags
record component
-
price
public double price()Returns the value of theprice
record component.- Returns:
- the value of the
price
record component
-
priceIsDiscounted
public boolean priceIsDiscounted()Returns the value of thepriceIsDiscounted
record component.- Returns:
- the value of the
priceIsDiscounted
record component
-
priceWithoutDiscount
Returns the value of thepriceWithoutDiscount
record component.- Returns:
- the value of the
priceWithoutDiscount
record component
-
discountType
Returns the value of thediscountType
record component.- Returns:
- the value of the
discountType
record component
-
pricePer
Returns the value of thepricePer
record component.- Returns:
- the value of the
pricePer
record component
-
currency
Returns the value of thecurrency
record component.- Returns:
- the value of the
currency
record component
-
locationOsmId
public long locationOsmId()Returns the value of thelocationOsmId
record component.- Returns:
- the value of the
locationOsmId
record component
-
locationOsmType
Returns the value of thelocationOsmType
record component.- Returns:
- the value of the
locationOsmType
record component
-
date
Returns the value of thedate
record component.- Returns:
- the value of the
date
record component
-
receiptQuantity
Returns the value of thereceiptQuantity
record component.- Returns:
- the value of the
receiptQuantity
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
created
Returns the value of thecreated
record component.- Returns:
- the value of the
created
record component
-
updated
Returns the value of theupdated
record component.- Returns:
- the value of the
updated
record component
-