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 aOpenPricesProductLocation
record class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()
Returns the value of thecreated
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.Returns the value of theosmAddressCity
record component.Returns the value of theosmAddressCountry
record component.Returns the value of theosmAddressCountryCode
record component.Returns the value of theosmAddressPostcode
record component.osmBrand()
Returns the value of theosmBrand
record component.Returns the value of theosmDisplayName
record component.long
osmId()
Returns the value of theosmId
record component.double
osmLat()
Returns the value of theosmLat
record component.double
osmLon()
Returns the value of theosmLon
record component.osmName()
Returns the value of theosmName
record component.Returns the value of theosmTagKey
record component.Returns the value of theosmTagValue
record component.osmType()
Returns the value of theosmType
record component.int
Returns the value of theosmVersion
record component.int
Returns the value of thepriceCount
record component.int
Returns the value of theproductCount
record component.int
Returns the value of theproofCount
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.int
Returns the value of theuserCount
record component.Returns the value of thewebsiteUrl
record 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 aOpenPricesProductLocation
record class.- Parameters:
id
- the value for theid
record componenttype
- the value for thetype
record componentosmId
- the value for theosmId
record componentosmType
- the value for theosmType
record componentosmName
- the value for theosmName
record componentosmDisplayName
- the value for theosmDisplayName
record componentosmTagKey
- the value for theosmTagKey
record componentosmTagValue
- the value for theosmTagValue
record componentosmBrand
- the value for theosmBrand
record componentosmAddressPostcode
- the value for theosmAddressPostcode
record componentosmAddressCity
- the value for theosmAddressCity
record componentosmAddressCountry
- the value for theosmAddressCountry
record componentosmAddressCountryCode
- the value for theosmAddressCountryCode
record componentosmLat
- the value for theosmLat
record componentosmLon
- the value for theosmLon
record componentosmVersion
- the value for theosmVersion
record componentwebsiteUrl
- the value for thewebsiteUrl
record componentpriceCount
- the value for thepriceCount
record componentuserCount
- the value for theuserCount
record componentproductCount
- the value for theproductCount
record componentproofCount
- the value for theproofCount
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
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
osmId
public long osmId()Returns the value of theosmId
record component.- Returns:
- the value of the
osmId
record component
-
osmType
Returns the value of theosmType
record component.- Returns:
- the value of the
osmType
record component
-
osmName
Returns the value of theosmName
record component.- Returns:
- the value of the
osmName
record component
-
osmDisplayName
Returns the value of theosmDisplayName
record component.- Returns:
- the value of the
osmDisplayName
record component
-
osmTagKey
Returns the value of theosmTagKey
record component.- Returns:
- the value of the
osmTagKey
record component
-
osmTagValue
Returns the value of theosmTagValue
record component.- Returns:
- the value of the
osmTagValue
record component
-
osmBrand
Returns the value of theosmBrand
record component.- Returns:
- the value of the
osmBrand
record component
-
osmAddressPostcode
Returns the value of theosmAddressPostcode
record component.- Returns:
- the value of the
osmAddressPostcode
record component
-
osmAddressCity
Returns the value of theosmAddressCity
record component.- Returns:
- the value of the
osmAddressCity
record component
-
osmAddressCountry
Returns the value of theosmAddressCountry
record component.- Returns:
- the value of the
osmAddressCountry
record component
-
osmAddressCountryCode
Returns the value of theosmAddressCountryCode
record component.- Returns:
- the value of the
osmAddressCountryCode
record component
-
osmLat
public double osmLat()Returns the value of theosmLat
record component.- Returns:
- the value of the
osmLat
record component
-
osmLon
public double osmLon()Returns the value of theosmLon
record component.- Returns:
- the value of the
osmLon
record component
-
osmVersion
public int osmVersion()Returns the value of theosmVersion
record component.- Returns:
- the value of the
osmVersion
record component
-
websiteUrl
Returns the value of thewebsiteUrl
record component.- Returns:
- the value of the
websiteUrl
record component
-
priceCount
public int priceCount()Returns the value of thepriceCount
record component.- Returns:
- the value of the
priceCount
record component
-
userCount
public int userCount()Returns the value of theuserCount
record component.- Returns:
- the value of the
userCount
record component
-
productCount
public int productCount()Returns the value of theproductCount
record component.- Returns:
- the value of the
productCount
record component
-
proofCount
public int proofCount()Returns the value of theproofCount
record component.- Returns:
- the value of the
proofCount
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
-