Package com.whatsapp.api.domain.webhook
Record Class Address
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.webhook.Address
public record Address(String zip, String country, String countryCode, String city, String street, String state, String type)
extends Record
The type Address.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncity()
Returns the value of thecity
record component.country()
Returns the value of thecountry
record component.Returns the value of thecountryCode
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.state()
Returns the value of thestate
record component.street()
Returns the value of thestreet
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.zip()
Returns the value of thezip
record component.
-
Constructor Details
-
Address
public Address(String zip, String country, String countryCode, String city, String street, String state, String type) Creates an instance of aAddress
record class.- Parameters:
zip
- the value for thezip
record componentcountry
- the value for thecountry
record componentcountryCode
- the value for thecountryCode
record componentcity
- the value for thecity
record componentstreet
- the value for thestreet
record componentstate
- the value for thestate
record componenttype
- the value for thetype
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
zip
Returns the value of thezip
record component.- Returns:
- the value of the
zip
record component
-
country
Returns the value of thecountry
record component.- Returns:
- the value of the
country
record component
-
countryCode
Returns the value of thecountryCode
record component.- Returns:
- the value of the
countryCode
record component
-
city
Returns the value of thecity
record component.- Returns:
- the value of the
city
record component
-
street
Returns the value of thestreet
record component.- Returns:
- the value of the
street
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-