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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord component.country()Returns the value of thecountryrecord component.Returns the value of thecountryCoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.street()Returns the value of thestreetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.zip()Returns the value of theziprecord component.
-
Constructor Details
-
Address
public Address(String zip, String country, String countryCode, String city, String street, String state, String type) Creates an instance of aAddressrecord class.- Parameters:
zip- the value for theziprecord componentcountry- the value for thecountryrecord componentcountryCode- the value for thecountryCoderecord componentcity- the value for thecityrecord componentstreet- the value for thestreetrecord componentstate- the value for thestaterecord componenttype- the value for thetyperecord 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 theziprecord component.- Returns:
- the value of the
ziprecord component
-
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
countryCode
Returns the value of thecountryCoderecord component.- Returns:
- the value of the
countryCoderecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
street
Returns the value of thestreetrecord component.- Returns:
- the value of the
streetrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-