Record Class OpenPricesProduct
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 Summary
ConstructorsConstructorDescriptionOpenPricesProduct
(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 aOpenPricesProduct
record class. -
Method Summary
Modifier and TypeMethodDescriptionbrands()
Returns the value of thebrands
record component.Returns the value of thebrandsTags
record component.Returns the value of thecategoriesTags
record component.code()
Returns the value of thecode
record component.created()
Returns the value of thecreated
record component.Returns the value of theecoscoreGrade
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.imageUrl()
Returns the value of theimageUrl
record component.Returns the value of thelabelsTags
record component.int
Returns the value of thelocationCount
record component.int
Returns the value of thelocationTypeOsmCountryCount
record component.Returns the value of thenovaGroup
record component.Returns the value of thenutriscoreGrade
record component.int
Returns the value of thepriceCount
record component.int
Returns the value of thepriceCurrencyCount
record component.Returns the value of theproductName
record component.Returns the value of theproductQuantity
record component.Returns the value of theproductQuantityUnit
record component.int
Returns the value of theproofCount
record component.source()
Returns the value of thesource
record component.Returns the value of thesourceLastSynced
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theuniqueScansN
record component.updated()
Returns the value of theupdated
record component.int
Returns the value of theuserCount
record component.
-
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 aOpenPricesProduct
record class.- Parameters:
id
- the value for theid
record componentcode
- the value for thecode
record componentsource
- the value for thesource
record componentsourceLastSynced
- the value for thesourceLastSynced
record componentproductName
- the value for theproductName
record componentimageUrl
- the value for theimageUrl
record componentproductQuantity
- the value for theproductQuantity
record componentproductQuantityUnit
- the value for theproductQuantityUnit
record componentcategoriesTags
- the value for thecategoriesTags
record componentbrands
- the value for thebrands
record componentbrandsTags
- the value for thebrandsTags
record componentlabelsTags
- the value for thelabelsTags
record componentnutriscoreGrade
- the value for thenutriscoreGrade
record componentecoscoreGrade
- the value for theecoscoreGrade
record componentnovaGroup
- the value for thenovaGroup
record componentuniqueScansN
- the value for theuniqueScansN
record componentpriceCount
- the value for thepriceCount
record componentpriceCurrencyCount
- the value for thepriceCurrencyCount
record componentlocationCount
- the value for thelocationCount
record componentlocationTypeOsmCountryCount
- the value for thelocationTypeOsmCountryCount
record componentuserCount
- the value for theuserCount
record componentproofCount
- the value for theproofCount
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
-
code
Returns the value of thecode
record component.- Returns:
- the value of the
code
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
sourceLastSynced
Returns the value of thesourceLastSynced
record component.- Returns:
- the value of the
sourceLastSynced
record component
-
productName
Returns the value of theproductName
record component.- Returns:
- the value of the
productName
record component
-
imageUrl
Returns the value of theimageUrl
record component.- Returns:
- the value of the
imageUrl
record component
-
productQuantity
Returns the value of theproductQuantity
record component.- Returns:
- the value of the
productQuantity
record component
-
productQuantityUnit
Returns the value of theproductQuantityUnit
record component.- Returns:
- the value of the
productQuantityUnit
record component
-
categoriesTags
Returns the value of thecategoriesTags
record component.- Returns:
- the value of the
categoriesTags
record component
-
brands
Returns the value of thebrands
record component.- Returns:
- the value of the
brands
record component
-
brandsTags
Returns the value of thebrandsTags
record component.- Returns:
- the value of the
brandsTags
record component
-
labelsTags
Returns the value of thelabelsTags
record component.- Returns:
- the value of the
labelsTags
record component
-
nutriscoreGrade
Returns the value of thenutriscoreGrade
record component.- Returns:
- the value of the
nutriscoreGrade
record component
-
ecoscoreGrade
Returns the value of theecoscoreGrade
record component.- Returns:
- the value of the
ecoscoreGrade
record component
-
novaGroup
Returns the value of thenovaGroup
record component.- Returns:
- the value of the
novaGroup
record component
-
uniqueScansN
public int uniqueScansN()Returns the value of theuniqueScansN
record component.- Returns:
- the value of the
uniqueScansN
record component
-
priceCount
public int priceCount()Returns the value of thepriceCount
record component.- Returns:
- the value of the
priceCount
record component
-
priceCurrencyCount
public int priceCurrencyCount()Returns the value of thepriceCurrencyCount
record component.- Returns:
- the value of the
priceCurrencyCount
record component
-
locationCount
public int locationCount()Returns the value of thelocationCount
record component.- Returns:
- the value of the
locationCount
record component
-
locationTypeOsmCountryCount
public int locationTypeOsmCountryCount()Returns the value of thelocationTypeOsmCountryCount
record component.- Returns:
- the value of the
locationTypeOsmCountryCount
record component
-
userCount
public int userCount()Returns the value of theuserCount
record component.- Returns:
- the value of the
userCount
record component
-
proofCount
public int proofCount()Returns the value of theproofCount
record component.- Returns:
- the value of the
proofCount
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
-