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 aOpenPriceProof
record class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()
Returns the value of thecreated
record component.currency()
Returns the value of thecurrency
record component.date()
Returns the value of thedate
record component.final boolean
Indicates whether some other object is "equal to" this one.filePath()
Returns the value of thefilePath
record component.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.Returns the value of theimageThumbPath
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.mimetype()
Returns the value of themimetype
record component.owner()
Returns the value of theowner
record component.int
Returns the value of thepredictionCount
record component.int
Returns the value of thepriceCount
record component.boolean
Returns the value of thereadyForPriceTagValidation
record component.Returns the value of thereceiptOnlineDeliveryCosts
record component.Returns the value of thereceiptPriceCount
record component.Returns the value of thereceiptPriceTotal
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
-
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 aOpenPriceProof
record class.- Parameters:
id
- the value for theid
record componentlocationId
- the value for thelocationId
record componentfilePath
- the value for thefilePath
record componentmimetype
- the value for themimetype
record componenttype
- the value for thetype
record componentimageThumbPath
- the value for theimageThumbPath
record componentlocationOsmId
- the value for thelocationOsmId
record componentlocationOsmType
- the value for thelocationOsmType
record componentdate
- the value for thedate
record componentcurrency
- the value for thecurrency
record componentreceiptPriceCount
- the value for thereceiptPriceCount
record componentreceiptPriceTotal
- the value for thereceiptPriceTotal
record componentreceiptOnlineDeliveryCosts
- the value for thereceiptOnlineDeliveryCosts
record componentreadyForPriceTagValidation
- the value for thereadyForPriceTagValidation
record componentpriceCount
- the value for thepriceCount
record componentpredictionCount
- the value for thepredictionCount
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
-
locationId
public int locationId()Returns the value of thelocationId
record component.- Returns:
- the value of the
locationId
record component
-
filePath
Returns the value of thefilePath
record component.- Returns:
- the value of the
filePath
record component
-
mimetype
Returns the value of themimetype
record component.- Returns:
- the value of the
mimetype
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
imageThumbPath
Returns the value of theimageThumbPath
record component.- Returns:
- the value of the
imageThumbPath
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
-
currency
Returns the value of thecurrency
record component.- Returns:
- the value of the
currency
record component
-
receiptPriceCount
Returns the value of thereceiptPriceCount
record component.- Returns:
- the value of the
receiptPriceCount
record component
-
receiptPriceTotal
Returns the value of thereceiptPriceTotal
record component.- Returns:
- the value of the
receiptPriceTotal
record component
-
receiptOnlineDeliveryCosts
Returns the value of thereceiptOnlineDeliveryCosts
record component.- Returns:
- the value of the
receiptOnlineDeliveryCosts
record component
-
readyForPriceTagValidation
public boolean readyForPriceTagValidation()Returns the value of thereadyForPriceTagValidation
record component.- Returns:
- the value of the
readyForPriceTagValidation
record component
-
priceCount
public int priceCount()Returns the value of thepriceCount
record component.- Returns:
- the value of the
priceCount
record component
-
predictionCount
public int predictionCount()Returns the value of thepredictionCount
record component.- Returns:
- the value of the
predictionCount
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
-