Package com.whatsapp.api.domain.webhook
Record Class Location
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Location
public record Location(String address, double latitude, String name, double longitude, String url)
extends Record
The type Location.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress()
Returns the value of theaddress
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.double
latitude()
Returns the value of thelatitude
record component.double
Returns the value of thelongitude
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Constructor Details
-
Location
Creates an instance of aLocation
record class.- Parameters:
address
- the value for theaddress
record componentlatitude
- the value for thelatitude
record componentname
- the value for thename
record componentlongitude
- the value for thelongitude
record componenturl
- the value for theurl
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 '=='. -
address
Returns the value of theaddress
record component.- Returns:
- the value of the
address
record component
-
latitude
public double latitude()Returns the value of thelatitude
record component.- Returns:
- the value of the
latitude
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
longitude
public double longitude()Returns the value of thelongitude
record component.- Returns:
- the value of the
longitude
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-