public class Address
extends java.lang.Object
| Constructor and Description |
|---|
Address() |
Address(java.lang.String street1,
java.lang.String street2,
java.lang.String city,
java.lang.String subdivision,
java.lang.String postalCode,
java.lang.String countryCode)
Constructs a new Address object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCity()
The city name of the customer.
|
java.lang.String |
getCountryCode()
The country of the customer.
|
java.lang.String |
getPostalCode()
The postal code, also known as the ZIP code of the address.
|
java.lang.String |
getStreet1()
Gets the primary street address of the customer.
|
java.lang.String |
getStreet2()
The second address line typically used for apartment or suite numbers.
|
java.lang.String |
getSubdivision()
The subdivision of the entered country.
|
Address |
setCity(java.lang.String city)
The city name of the customer.
|
Address |
setCountryCode(java.lang.String countryCode)
The country of the customer.
|
Address |
setPostalCode(java.lang.String postalCode)
The postal code, also known as the ZIP code of the address.
|
Address |
setStreet1(java.lang.String street1)
The primary street address of the customer.
|
Address |
setStreet2(java.lang.String street2)
The second address line typically used for apartment or suite numbers.
|
Address |
setSubdivision(java.lang.String subdivision)
The subdivision of the entered country.
|
public Address()
public Address(java.lang.String street1,
java.lang.String street2,
java.lang.String city,
java.lang.String subdivision,
java.lang.String postalCode,
java.lang.String countryCode)
street1 - the primary street addressstreet2 - the second address line (typically for apartment or suite numbers)city - the citysubdivision - the subdivision of the entered country (in the U.S., the state)postalCode - the postal (ZIP) codecountryCode - the country code@NotNull public Address setStreet1(java.lang.String street1)
street1 - Street (Line 1)@NotNull public Address setStreet2(java.lang.String street2)
street2 - Street (Line 2)@NotNull public Address setCity(java.lang.String city)
city - City@NotNull public Address setSubdivision(java.lang.String subdivision)
subdivision - Subdivision (FIPS code format)@NotNull public Address setPostalCode(java.lang.String postalCode)
postalCode - Postal (ZIP) code@NotNull public Address setCountryCode(java.lang.String countryCode)
countryCode - the country codepublic java.lang.String getStreet1()
public java.lang.String getStreet2()
public java.lang.String getCity()
public java.lang.String getSubdivision()
public java.lang.String getPostalCode()
public java.lang.String getCountryCode()