public static class Address.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Constructor to initialize an empty Address builder object.
|
Builder(Address address)
Constructor to initialize Address builder with pre-populated
Address object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
build() |
void |
setApartment(java.lang.String apartment)
Set the apartment for the address.
|
void |
setCity(java.lang.String city)
Set the City for the address.
|
void |
setCountry(java.lang.String country)
Set the Country for the address.
|
void |
setIndex(int index)
Set the index for the address.
|
void |
setPObox(java.lang.String pobox)
Set the POBox for the address.
|
void |
setPreference(int preference)
Set the preference for the address.
|
void |
setState(java.lang.String state)
Set the state for the address.
|
void |
setStreet(java.lang.String street)
Set the street for the address.
|
void |
setType(java.lang.String type)
Set address type.
|
void |
setZipcode(java.lang.String zipcode)
Set the Zipcode for the address.
|
public Builder()
public void setIndex(int index)
index
- index to be set for the addresspublic void setApartment(java.lang.String apartment)
apartment
- Apartment for the addresspublic void setStreet(java.lang.String street)
street
- Street value for the addresspublic void setCity(java.lang.String city)
city
- City for the addresspublic void setState(java.lang.String state)
state
- State for the addresspublic void setCountry(java.lang.String country)
country
- Country for the addresspublic void setZipcode(java.lang.String zipcode)
zipcode
- Zipcode for the addresspublic void setPObox(java.lang.String pobox)
pobox
- POBox for the addresspublic void setPreference(int preference)
preference
- Preference for the addresspublic void setType(java.lang.String type)
type
- address typepublic java.lang.Object build()