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 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 a OpenPriceProof record class.
      Parameters:
      id - the value for the id record component
      locationId - the value for the locationId record component
      filePath - the value for the filePath record component
      mimetype - the value for the mimetype record component
      type - the value for the type record component
      imageThumbPath - the value for the imageThumbPath record component
      locationOsmId - the value for the locationOsmId record component
      locationOsmType - the value for the locationOsmType record component
      date - the value for the date record component
      currency - the value for the currency record component
      receiptPriceCount - the value for the receiptPriceCount record component
      receiptPriceTotal - the value for the receiptPriceTotal record component
      receiptOnlineDeliveryCosts - the value for the receiptOnlineDeliveryCosts record component
      readyForPriceTagValidation - the value for the readyForPriceTagValidation record component
      priceCount - the value for the priceCount record component
      predictionCount - the value for the predictionCount record component
      owner - the value for the owner record component
      source - the value for the source record component
      created - the value for the created record component
      updated - the value for the updated record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • locationId

      public int locationId()
      Returns the value of the locationId record component.
      Returns:
      the value of the locationId record component
    • filePath

      public String filePath()
      Returns the value of the filePath record component.
      Returns:
      the value of the filePath record component
    • mimetype

      public String mimetype()
      Returns the value of the mimetype record component.
      Returns:
      the value of the mimetype record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • imageThumbPath

      public String imageThumbPath()
      Returns the value of the imageThumbPath record component.
      Returns:
      the value of the imageThumbPath record component
    • locationOsmId

      public long locationOsmId()
      Returns the value of the locationOsmId record component.
      Returns:
      the value of the locationOsmId record component
    • locationOsmType

      public String locationOsmType()
      Returns the value of the locationOsmType record component.
      Returns:
      the value of the locationOsmType record component
    • date

      public LocalDate date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • receiptPriceCount

      public Integer receiptPriceCount()
      Returns the value of the receiptPriceCount record component.
      Returns:
      the value of the receiptPriceCount record component
    • receiptPriceTotal

      public Double receiptPriceTotal()
      Returns the value of the receiptPriceTotal record component.
      Returns:
      the value of the receiptPriceTotal record component
    • receiptOnlineDeliveryCosts

      public Double receiptOnlineDeliveryCosts()
      Returns the value of the receiptOnlineDeliveryCosts record component.
      Returns:
      the value of the receiptOnlineDeliveryCosts record component
    • readyForPriceTagValidation

      public boolean readyForPriceTagValidation()
      Returns the value of the readyForPriceTagValidation record component.
      Returns:
      the value of the readyForPriceTagValidation record component
    • priceCount

      public int priceCount()
      Returns the value of the priceCount record component.
      Returns:
      the value of the priceCount record component
    • predictionCount

      public int predictionCount()
      Returns the value of the predictionCount record component.
      Returns:
      the value of the predictionCount record component
    • owner

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • created

      public LocalDateTime created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • updated

      public LocalDateTime updated()
      Returns the value of the updated record component.
      Returns:
      the value of the updated record component