public class Address extends Object implements Serializable
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Map<String,Object> |
getAdditionalProperties() |
String |
getApartment()
Apartment number
|
String |
getCity()
City name
|
String |
getCountry()
Alpha-2 ISO 3166 country code
|
String |
getDisplay()
The full address for display purposes.
|
String |
getHouse()
House number
|
String |
getPoBox()
Post Office box number
|
String |
getRaw()
An unparsed full address.
|
String |
getState()
2 letters state code, if country is one of US, Canada or Brazil.
|
String |
getStreet()
Street name
|
String |
getType()
Either one of 'home’, 'work’ or 'old’.
|
String |
getValidSince()
Valid since (YYYY-mm-DD)
|
String |
getZipCode()
Postal zip code
|
int |
hashCode() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setApartment(String apartment)
Apartment number
|
void |
setCity(String city)
City name
|
void |
setCountry(String country)
Alpha-2 ISO 3166 country code
|
void |
setDisplay(String display)
The full address for display purposes.
|
void |
setHouse(String house)
House number
|
void |
setPoBox(String poBox)
Post Office box number
|
void |
setRaw(String raw)
An unparsed full address.
|
void |
setState(String state)
2 letters state code, if country is one of US, Canada or Brazil.
|
void |
setStreet(String street)
Street name
|
void |
setType(String type)
Either one of 'home’, 'work’ or 'old’.
|
void |
setValidSince(String validSince)
Valid since (YYYY-mm-DD)
|
void |
setZipCode(String zipCode)
Postal zip code
|
String |
toString() |
Address |
withAdditionalProperty(String name,
Object value) |
Address |
withApartment(String apartment) |
Address |
withCity(String city) |
Address |
withCountry(String country) |
Address |
withDisplay(String display) |
Address |
withHouse(String house) |
Address |
withPoBox(String poBox) |
Address |
withRaw(String raw) |
Address |
withState(String state) |
Address |
withStreet(String street) |
Address |
withType(String type) |
Address |
withValidSince(String validSince) |
Address |
withZipCode(String zipCode) |
public String getType()
public void setType(String type)
public String getValidSince()
public void setValidSince(String validSince)
public String getCountry()
public void setCountry(String country)
public String getState()
public void setState(String state)
public String getCity()
public void setCity(String city)
public String getStreet()
public void setStreet(String street)
public String getHouse()
public void setHouse(String house)
public String getApartment()
public void setApartment(String apartment)
public String getZipCode()
public void setZipCode(String zipCode)
public String getPoBox()
public void setPoBox(String poBox)
public String getRaw()
public void setRaw(String raw)
public String getDisplay()
public void setDisplay(String display)
Copyright © 2020 The Apache Software Foundation. All rights reserved.