Record Class OpenPricesProductLocation

java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.dtos.openprices.OpenPricesProductLocation

public record OpenPricesProductLocation(int id, String type, long osmId, String osmType, String osmName, String osmDisplayName, String osmTagKey, String osmTagValue, String osmBrand, String osmAddressPostcode, String osmAddressCity, String osmAddressCountry, String osmAddressCountryCode, double osmLat, double osmLon, int osmVersion, String websiteUrl, int priceCount, int userCount, int productCount, int proofCount, String source, LocalDateTime created, LocalDateTime updated) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenPricesProductLocation(int id, String type, long osmId, String osmType, String osmName, String osmDisplayName, String osmTagKey, String osmTagValue, String osmBrand, String osmAddressPostcode, String osmAddressCity, String osmAddressCountry, String osmAddressCountryCode, double osmLat, double osmLon, int osmVersion, String websiteUrl, int priceCount, int userCount, int productCount, int proofCount, String source, LocalDateTime created, LocalDateTime updated)
    Creates an instance of a OpenPricesProductLocation record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the created record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    id()
    Returns the value of the id record component.
    Returns the value of the osmAddressCity record component.
    Returns the value of the osmAddressCountry record component.
    Returns the value of the osmAddressCountryCode record component.
    Returns the value of the osmAddressPostcode record component.
    Returns the value of the osmBrand record component.
    Returns the value of the osmDisplayName record component.
    long
    Returns the value of the osmId record component.
    double
    Returns the value of the osmLat record component.
    double
    Returns the value of the osmLon record component.
    Returns the value of the osmName record component.
    Returns the value of the osmTagKey record component.
    Returns the value of the osmTagValue record component.
    Returns the value of the osmType record component.
    int
    Returns the value of the osmVersion record component.
    int
    Returns the value of the priceCount record component.
    int
    Returns the value of the productCount record component.
    int
    Returns the value of the proofCount record component.
    Returns the value of the source record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.
    Returns the value of the updated record component.
    int
    Returns the value of the userCount record component.
    Returns the value of the websiteUrl record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OpenPricesProductLocation

      public OpenPricesProductLocation(int id, String type, long osmId, String osmType, String osmName, String osmDisplayName, String osmTagKey, String osmTagValue, String osmBrand, String osmAddressPostcode, String osmAddressCity, String osmAddressCountry, String osmAddressCountryCode, double osmLat, double osmLon, int osmVersion, String websiteUrl, int priceCount, int userCount, int productCount, int proofCount, String source, LocalDateTime created, LocalDateTime updated)
      Creates an instance of a OpenPricesProductLocation record class.
      Parameters:
      id - the value for the id record component
      type - the value for the type record component
      osmId - the value for the osmId record component
      osmType - the value for the osmType record component
      osmName - the value for the osmName record component
      osmDisplayName - the value for the osmDisplayName record component
      osmTagKey - the value for the osmTagKey record component
      osmTagValue - the value for the osmTagValue record component
      osmBrand - the value for the osmBrand record component
      osmAddressPostcode - the value for the osmAddressPostcode record component
      osmAddressCity - the value for the osmAddressCity record component
      osmAddressCountry - the value for the osmAddressCountry record component
      osmAddressCountryCode - the value for the osmAddressCountryCode record component
      osmLat - the value for the osmLat record component
      osmLon - the value for the osmLon record component
      osmVersion - the value for the osmVersion record component
      websiteUrl - the value for the websiteUrl record component
      priceCount - the value for the priceCount record component
      userCount - the value for the userCount record component
      productCount - the value for the productCount record component
      proofCount - the value for the proofCount 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
    • type

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

      public long osmId()
      Returns the value of the osmId record component.
      Returns:
      the value of the osmId record component
    • osmType

      public String osmType()
      Returns the value of the osmType record component.
      Returns:
      the value of the osmType record component
    • osmName

      public String osmName()
      Returns the value of the osmName record component.
      Returns:
      the value of the osmName record component
    • osmDisplayName

      public String osmDisplayName()
      Returns the value of the osmDisplayName record component.
      Returns:
      the value of the osmDisplayName record component
    • osmTagKey

      public String osmTagKey()
      Returns the value of the osmTagKey record component.
      Returns:
      the value of the osmTagKey record component
    • osmTagValue

      public String osmTagValue()
      Returns the value of the osmTagValue record component.
      Returns:
      the value of the osmTagValue record component
    • osmBrand

      public String osmBrand()
      Returns the value of the osmBrand record component.
      Returns:
      the value of the osmBrand record component
    • osmAddressPostcode

      public String osmAddressPostcode()
      Returns the value of the osmAddressPostcode record component.
      Returns:
      the value of the osmAddressPostcode record component
    • osmAddressCity

      public String osmAddressCity()
      Returns the value of the osmAddressCity record component.
      Returns:
      the value of the osmAddressCity record component
    • osmAddressCountry

      public String osmAddressCountry()
      Returns the value of the osmAddressCountry record component.
      Returns:
      the value of the osmAddressCountry record component
    • osmAddressCountryCode

      public String osmAddressCountryCode()
      Returns the value of the osmAddressCountryCode record component.
      Returns:
      the value of the osmAddressCountryCode record component
    • osmLat

      public double osmLat()
      Returns the value of the osmLat record component.
      Returns:
      the value of the osmLat record component
    • osmLon

      public double osmLon()
      Returns the value of the osmLon record component.
      Returns:
      the value of the osmLon record component
    • osmVersion

      public int osmVersion()
      Returns the value of the osmVersion record component.
      Returns:
      the value of the osmVersion record component
    • websiteUrl

      public String websiteUrl()
      Returns the value of the websiteUrl record component.
      Returns:
      the value of the websiteUrl record component
    • priceCount

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

      public int userCount()
      Returns the value of the userCount record component.
      Returns:
      the value of the userCount record component
    • productCount

      public int productCount()
      Returns the value of the productCount record component.
      Returns:
      the value of the productCount record component
    • proofCount

      public int proofCount()
      Returns the value of the proofCount record component.
      Returns:
      the value of the proofCount 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