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 aOpenPricesProductrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbrands()Returns the value of thebrandsrecord component.Returns the value of thebrandsTagsrecord component.Returns the value of thecategoriesTagsrecord component.code()Returns the value of thecoderecord component.created()Returns the value of thecreatedrecord component.Returns the value of theecoscoreGraderecord 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.imageUrl()Returns the value of theimageUrlrecord component.Returns the value of thelabelsTagsrecord component.intReturns the value of thelocationCountrecord component.intReturns the value of thelocationTypeOsmCountryCountrecord component.Returns the value of thenovaGrouprecord component.Returns the value of thenutriscoreGraderecord component.intReturns the value of thepriceCountrecord component.intReturns the value of thepriceCurrencyCountrecord component.Returns the value of theproductNamerecord component.Returns the value of theproductQuantityrecord component.Returns the value of theproductQuantityUnitrecord component.intReturns the value of theproofCountrecord component.source()Returns the value of thesourcerecord component.Returns the value of thesourceLastSyncedrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theuniqueScansNrecord component.updated()Returns the value of theupdatedrecord component.intReturns the value of theuserCountrecord 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 aOpenPricesProductrecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentsource- the value for thesourcerecord componentsourceLastSynced- the value for thesourceLastSyncedrecord componentproductName- the value for theproductNamerecord componentimageUrl- the value for theimageUrlrecord componentproductQuantity- the value for theproductQuantityrecord componentproductQuantityUnit- the value for theproductQuantityUnitrecord componentcategoriesTags- the value for thecategoriesTagsrecord componentbrands- the value for thebrandsrecord componentbrandsTags- the value for thebrandsTagsrecord componentlabelsTags- the value for thelabelsTagsrecord componentnutriscoreGrade- the value for thenutriscoreGraderecord componentecoscoreGrade- the value for theecoscoreGraderecord componentnovaGroup- the value for thenovaGrouprecord componentuniqueScansN- the value for theuniqueScansNrecord componentpriceCount- the value for thepriceCountrecord componentpriceCurrencyCount- the value for thepriceCurrencyCountrecord componentlocationCount- the value for thelocationCountrecord componentlocationTypeOsmCountryCount- the value for thelocationTypeOsmCountryCountrecord componentuserCount- the value for theuserCountrecord componentproofCount- the value for theproofCountrecord 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
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
sourceLastSynced
Returns the value of thesourceLastSyncedrecord component.- Returns:
- the value of the
sourceLastSyncedrecord component
-
productName
Returns the value of theproductNamerecord component.- Returns:
- the value of the
productNamerecord component
-
imageUrl
Returns the value of theimageUrlrecord component.- Returns:
- the value of the
imageUrlrecord component
-
productQuantity
Returns the value of theproductQuantityrecord component.- Returns:
- the value of the
productQuantityrecord component
-
productQuantityUnit
Returns the value of theproductQuantityUnitrecord component.- Returns:
- the value of the
productQuantityUnitrecord component
-
categoriesTags
Returns the value of thecategoriesTagsrecord component.- Returns:
- the value of the
categoriesTagsrecord component
-
brands
Returns the value of thebrandsrecord component.- Returns:
- the value of the
brandsrecord component
-
brandsTags
Returns the value of thebrandsTagsrecord component.- Returns:
- the value of the
brandsTagsrecord component
-
labelsTags
Returns the value of thelabelsTagsrecord component.- Returns:
- the value of the
labelsTagsrecord component
-
nutriscoreGrade
Returns the value of thenutriscoreGraderecord component.- Returns:
- the value of the
nutriscoreGraderecord component
-
ecoscoreGrade
Returns the value of theecoscoreGraderecord component.- Returns:
- the value of the
ecoscoreGraderecord component
-
novaGroup
Returns the value of thenovaGrouprecord component.- Returns:
- the value of the
novaGrouprecord component
-
uniqueScansN
public int uniqueScansN()Returns the value of theuniqueScansNrecord component.- Returns:
- the value of the
uniqueScansNrecord component
-
priceCount
public int priceCount()Returns the value of thepriceCountrecord component.- Returns:
- the value of the
priceCountrecord component
-
priceCurrencyCount
public int priceCurrencyCount()Returns the value of thepriceCurrencyCountrecord component.- Returns:
- the value of the
priceCurrencyCountrecord component
-
locationCount
public int locationCount()Returns the value of thelocationCountrecord component.- Returns:
- the value of the
locationCountrecord component
-
locationTypeOsmCountryCount
public int locationTypeOsmCountryCount()Returns the value of thelocationTypeOsmCountryCountrecord component.- Returns:
- the value of the
locationTypeOsmCountryCountrecord component
-
userCount
public int userCount()Returns the value of theuserCountrecord component.- Returns:
- the value of the
userCountrecord component
-
proofCount
public int proofCount()Returns the value of theproofCountrecord component.- Returns:
- the value of the
proofCountrecord 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
-