public abstract class Address extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Address.Builder
Builder to create
Address objects. |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
static Address.Builder |
builder()
Returns a new builder for an
Address object. |
static Address |
create(String countryName,
String countryCode,
String stateName,
String cityName,
String districtName,
String streetName,
String houseNumber,
String postalCode,
String county,
String subDistrict,
String building,
List<String> addressLines)
Creates a new
Address with the given parameters. |
abstract List<String> |
getAddressLines()
Returns the formatted address lines, as they would have been written on an envelope.
|
abstract String |
getBuilding()
Returns the building name (e.g.
|
abstract String |
getCityName()
Returns the city name.
|
abstract String |
getCountryCode()
Returns the ISO 3166 Alpha 3 country code.
|
abstract String |
getCountryName()
Returns the country name.
|
abstract String |
getCounty()
Returns the county (second subdivision level below the country).
|
abstract String |
getDistrictName()
Returns the district name (if relevant).
|
abstract String |
getHouseNumber()
Returns the house number.
|
abstract String |
getPostalCode()
Returns the postal code.
|
abstract String |
getStateName()
Returns the state name (if relevant).
|
abstract String |
getStreetName()
Returns the street name.
|
abstract String |
getSubDistrict()
Returns the sub-district (subdivision level below the district; e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract String getCountryName()
public abstract String getCountryCode()
public abstract String getStateName()
public abstract String getCityName()
public abstract String getDistrictName()
public abstract String getStreetName()
public abstract String getHouseNumber()
public abstract String getPostalCode()
public abstract String getCounty()
public abstract String getSubDistrict()
public abstract String getBuilding()
public abstract List<String> getAddressLines()
public static Address create(String countryName, String countryCode, String stateName, String cityName, String districtName, String streetName, String houseNumber, String postalCode, String county, String subDistrict, String building, List<String> addressLines)
Address
with the given parameters.public static Address.Builder builder()
Address
object.