Record Class OpenPriceProof
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.openprices.OpenPriceProof
public record OpenPriceProof(int id, int locationId, String filePath, String mimetype, String type, String imageThumbPath, long locationOsmId, String locationOsmType, LocalDate date, String currency, Integer receiptPriceCount, Double receiptPriceTotal, Double receiptOnlineDeliveryCosts, boolean readyForPriceTagValidation, int priceCount, int predictionCount, String owner, String source, LocalDateTime created, LocalDateTime updated)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOpenPriceProof(int id, int locationId, String filePath, String mimetype, String type, String imageThumbPath, long locationOsmId, String locationOsmType, LocalDate date, String currency, Integer receiptPriceCount, Double receiptPriceTotal, Double receiptOnlineDeliveryCosts, boolean readyForPriceTagValidation, int priceCount, int predictionCount, String owner, String source, LocalDateTime created, LocalDateTime updated) Creates an instance of aOpenPriceProofrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.currency()Returns the value of thecurrencyrecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.Returns the value of theimageThumbPathrecord component.intReturns the value of thelocationIdrecord component.longReturns the value of thelocationOsmIdrecord component.Returns the value of thelocationOsmTyperecord component.mimetype()Returns the value of themimetyperecord component.owner()Returns the value of theownerrecord component.intReturns the value of thepredictionCountrecord component.intReturns the value of thepriceCountrecord component.booleanReturns the value of thereadyForPriceTagValidationrecord component.Returns the value of thereceiptOnlineDeliveryCostsrecord component.Returns the value of thereceiptPriceCountrecord component.Returns the value of thereceiptPriceTotalrecord 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
-
OpenPriceProof
public OpenPriceProof(int id, int locationId, String filePath, String mimetype, String type, String imageThumbPath, long locationOsmId, String locationOsmType, LocalDate date, String currency, Integer receiptPriceCount, Double receiptPriceTotal, Double receiptOnlineDeliveryCosts, boolean readyForPriceTagValidation, int priceCount, int predictionCount, String owner, String source, LocalDateTime created, LocalDateTime updated) Creates an instance of aOpenPriceProofrecord class.- Parameters:
id- the value for theidrecord componentlocationId- the value for thelocationIdrecord componentfilePath- the value for thefilePathrecord componentmimetype- the value for themimetyperecord componenttype- the value for thetyperecord componentimageThumbPath- the value for theimageThumbPathrecord componentlocationOsmId- the value for thelocationOsmIdrecord componentlocationOsmType- the value for thelocationOsmTyperecord componentdate- the value for thedaterecord componentcurrency- the value for thecurrencyrecord componentreceiptPriceCount- the value for thereceiptPriceCountrecord componentreceiptPriceTotal- the value for thereceiptPriceTotalrecord componentreceiptOnlineDeliveryCosts- the value for thereceiptOnlineDeliveryCostsrecord componentreadyForPriceTagValidation- the value for thereadyForPriceTagValidationrecord componentpriceCount- the value for thepriceCountrecord componentpredictionCount- the value for thepredictionCountrecord 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
-
locationId
public int locationId()Returns the value of thelocationIdrecord component.- Returns:
- the value of the
locationIdrecord component
-
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-
mimetype
Returns the value of themimetyperecord component.- Returns:
- the value of the
mimetyperecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
imageThumbPath
Returns the value of theimageThumbPathrecord component.- Returns:
- the value of the
imageThumbPathrecord 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
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
receiptPriceCount
Returns the value of thereceiptPriceCountrecord component.- Returns:
- the value of the
receiptPriceCountrecord component
-
receiptPriceTotal
Returns the value of thereceiptPriceTotalrecord component.- Returns:
- the value of the
receiptPriceTotalrecord component
-
receiptOnlineDeliveryCosts
Returns the value of thereceiptOnlineDeliveryCostsrecord component.- Returns:
- the value of the
receiptOnlineDeliveryCostsrecord component
-
readyForPriceTagValidation
public boolean readyForPriceTagValidation()Returns the value of thereadyForPriceTagValidationrecord component.- Returns:
- the value of the
readyForPriceTagValidationrecord component
-
priceCount
public int priceCount()Returns the value of thepriceCountrecord component.- Returns:
- the value of the
priceCountrecord component
-
predictionCount
public int predictionCount()Returns the value of thepredictionCountrecord component.- Returns:
- the value of the
predictionCountrecord 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
-