Record Class ShippingAddress
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ShippingAddress
- All Implemented Interfaces:
Serializable,ApiResult
public record ShippingAddress(String countryCode, String state, String city, String streetLine1, String streetLine2, String postCode)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord 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.postCode()Returns the value of thepostCoderecord component.state()Returns the value of thestaterecord component.Returns the value of thestreetLine1record component.Returns the value of thestreetLine2record component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShippingAddress
public ShippingAddress(String countryCode, String state, String city, String streetLine1, String streetLine2, String postCode) Creates an instance of aShippingAddressrecord class.- Parameters:
countryCode- the value for thecountryCoderecord componentstate- the value for thestaterecord componentcity- the value for thecityrecord componentstreetLine1- the value for thestreetLine1record componentstreetLine2- the value for thestreetLine2record componentpostCode- the value for thepostCoderecord 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). -
countryCode
Returns the value of thecountryCoderecord component.- Returns:
- the value of the
countryCoderecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
streetLine1
Returns the value of thestreetLine1record component.- Returns:
- the value of the
streetLine1record component
-
streetLine2
Returns the value of thestreetLine2record component.- Returns:
- the value of the
streetLine2record component
-
postCode
Returns the value of thepostCoderecord component.- Returns:
- the value of the
postCoderecord component
-