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
ConstructorsConstructorDescriptionOpenPricesProductLocation(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 aOpenPricesProductLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord 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.Returns the value of theosmAddressCityrecord component.Returns the value of theosmAddressCountryrecord component.Returns the value of theosmAddressCountryCoderecord component.Returns the value of theosmAddressPostcoderecord component.osmBrand()Returns the value of theosmBrandrecord component.Returns the value of theosmDisplayNamerecord component.longosmId()Returns the value of theosmIdrecord component.doubleosmLat()Returns the value of theosmLatrecord component.doubleosmLon()Returns the value of theosmLonrecord component.osmName()Returns the value of theosmNamerecord component.Returns the value of theosmTagKeyrecord component.Returns the value of theosmTagValuerecord component.osmType()Returns the value of theosmTyperecord component.intReturns the value of theosmVersionrecord component.intReturns the value of thepriceCountrecord component.intReturns the value of theproductCountrecord component.intReturns the value of theproofCountrecord 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.intReturns the value of theuserCountrecord component.Returns the value of thewebsiteUrlrecord component.
-
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 aOpenPricesProductLocationrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentosmId- the value for theosmIdrecord componentosmType- the value for theosmTyperecord componentosmName- the value for theosmNamerecord componentosmDisplayName- the value for theosmDisplayNamerecord componentosmTagKey- the value for theosmTagKeyrecord componentosmTagValue- the value for theosmTagValuerecord componentosmBrand- the value for theosmBrandrecord componentosmAddressPostcode- the value for theosmAddressPostcoderecord componentosmAddressCity- the value for theosmAddressCityrecord componentosmAddressCountry- the value for theosmAddressCountryrecord componentosmAddressCountryCode- the value for theosmAddressCountryCoderecord componentosmLat- the value for theosmLatrecord componentosmLon- the value for theosmLonrecord componentosmVersion- the value for theosmVersionrecord componentwebsiteUrl- the value for thewebsiteUrlrecord componentpriceCount- the value for thepriceCountrecord componentuserCount- the value for theuserCountrecord componentproductCount- the value for theproductCountrecord componentproofCount- the value for theproofCountrecord 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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
osmId
public long osmId()Returns the value of theosmIdrecord component.- Returns:
- the value of the
osmIdrecord component
-
osmType
Returns the value of theosmTyperecord component.- Returns:
- the value of the
osmTyperecord component
-
osmName
Returns the value of theosmNamerecord component.- Returns:
- the value of the
osmNamerecord component
-
osmDisplayName
Returns the value of theosmDisplayNamerecord component.- Returns:
- the value of the
osmDisplayNamerecord component
-
osmTagKey
Returns the value of theosmTagKeyrecord component.- Returns:
- the value of the
osmTagKeyrecord component
-
osmTagValue
Returns the value of theosmTagValuerecord component.- Returns:
- the value of the
osmTagValuerecord component
-
osmBrand
Returns the value of theosmBrandrecord component.- Returns:
- the value of the
osmBrandrecord component
-
osmAddressPostcode
Returns the value of theosmAddressPostcoderecord component.- Returns:
- the value of the
osmAddressPostcoderecord component
-
osmAddressCity
Returns the value of theosmAddressCityrecord component.- Returns:
- the value of the
osmAddressCityrecord component
-
osmAddressCountry
Returns the value of theosmAddressCountryrecord component.- Returns:
- the value of the
osmAddressCountryrecord component
-
osmAddressCountryCode
Returns the value of theosmAddressCountryCoderecord component.- Returns:
- the value of the
osmAddressCountryCoderecord component
-
osmLat
public double osmLat()Returns the value of theosmLatrecord component.- Returns:
- the value of the
osmLatrecord component
-
osmLon
public double osmLon()Returns the value of theosmLonrecord component.- Returns:
- the value of the
osmLonrecord component
-
osmVersion
public int osmVersion()Returns the value of theosmVersionrecord component.- Returns:
- the value of the
osmVersionrecord component
-
websiteUrl
Returns the value of thewebsiteUrlrecord component.- Returns:
- the value of the
websiteUrlrecord component
-
priceCount
public int priceCount()Returns the value of thepriceCountrecord component.- Returns:
- the value of the
priceCountrecord component
-
userCount
public int userCount()Returns the value of theuserCountrecord component.- Returns:
- the value of the
userCountrecord component
-
productCount
public int productCount()Returns the value of theproductCountrecord component.- Returns:
- the value of the
productCountrecord component
-
proofCount
public int proofCount()Returns the value of theproofCountrecord component.- Returns:
- the value of the
proofCountrecord 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
-