Merge change 6906 into donut
* changes: location: Add sub-locality, sub-thoroughfare and premises fields to Address class
This commit is contained in:
@@ -66816,6 +66816,17 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="getPremises"
|
||||||
|
return="java.lang.String"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</method>
|
||||||
<method name="getSubAdminArea"
|
<method name="getSubAdminArea"
|
||||||
return="java.lang.String"
|
return="java.lang.String"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
@@ -66827,6 +66838,28 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="getSubLocality"
|
||||||
|
return="java.lang.String"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</method>
|
||||||
|
<method name="getSubThoroughfare"
|
||||||
|
return="java.lang.String"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</method>
|
||||||
<method name="getThoroughfare"
|
<method name="getThoroughfare"
|
||||||
return="java.lang.String"
|
return="java.lang.String"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
@@ -67016,6 +67049,19 @@
|
|||||||
<parameter name="postalCode" type="java.lang.String">
|
<parameter name="postalCode" type="java.lang.String">
|
||||||
</parameter>
|
</parameter>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="setPremises"
|
||||||
|
return="void"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
<parameter name="premises" type="java.lang.String">
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
<method name="setSubAdminArea"
|
<method name="setSubAdminArea"
|
||||||
return="void"
|
return="void"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
@@ -67029,6 +67075,32 @@
|
|||||||
<parameter name="subAdminArea" type="java.lang.String">
|
<parameter name="subAdminArea" type="java.lang.String">
|
||||||
</parameter>
|
</parameter>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="setSubLocality"
|
||||||
|
return="void"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
<parameter name="sublocality" type="java.lang.String">
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
|
<method name="setSubThoroughfare"
|
||||||
|
return="void"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
<parameter name="subthoroughfare" type="java.lang.String">
|
||||||
|
</parameter>
|
||||||
|
</method>
|
||||||
<method name="setThoroughfare"
|
<method name="setThoroughfare"
|
||||||
return="void"
|
return="void"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
|
|||||||
@@ -41,7 +41,10 @@ public class Address implements Parcelable {
|
|||||||
private String mAdminArea;
|
private String mAdminArea;
|
||||||
private String mSubAdminArea;
|
private String mSubAdminArea;
|
||||||
private String mLocality;
|
private String mLocality;
|
||||||
|
private String mSubLocality;
|
||||||
private String mThoroughfare;
|
private String mThoroughfare;
|
||||||
|
private String mSubThoroughfare;
|
||||||
|
private String mPremises;
|
||||||
private String mPostalCode;
|
private String mPostalCode;
|
||||||
private String mCountryCode;
|
private String mCountryCode;
|
||||||
private String mCountryName;
|
private String mCountryName;
|
||||||
@@ -174,6 +177,21 @@ public class Address implements Parcelable {
|
|||||||
mLocality = locality;
|
mLocality = locality;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the sub-locality of the address, or null if it is unknown.
|
||||||
|
* For example, this may correspond to the neighborhood of the locality.
|
||||||
|
*/
|
||||||
|
public String getSubLocality() {
|
||||||
|
return mSubLocality;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the sub-locality of the address to the given String, which may be null.
|
||||||
|
*/
|
||||||
|
public void setSubLocality(String sublocality) {
|
||||||
|
mSubLocality = sublocality;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway",
|
* Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway",
|
||||||
* which may be null
|
* which may be null
|
||||||
@@ -189,6 +207,35 @@ public class Address implements Parcelable {
|
|||||||
this.mThoroughfare = thoroughfare;
|
this.mThoroughfare = thoroughfare;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the sub-thoroughfare name of the address, which may be null.
|
||||||
|
* This may correspond to the street number of the address.
|
||||||
|
*/
|
||||||
|
public String getSubThoroughfare() {
|
||||||
|
return mSubThoroughfare;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the sub-thoroughfare name of the address, which may be null.
|
||||||
|
*/
|
||||||
|
public void setSubThoroughfare(String subthoroughfare) {
|
||||||
|
this.mSubThoroughfare = subthoroughfare;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the premises of the address, or null if it is unknown.
|
||||||
|
*/
|
||||||
|
public String getPremises() {
|
||||||
|
return mPremises;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the premises of the address to the given String, which may be null.
|
||||||
|
*/
|
||||||
|
public void setPremises(String premises) {
|
||||||
|
mPremises = premises;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the postal code of the address, for example "94110",
|
* Returns the postal code of the address, for example "94110",
|
||||||
* or null if it is unknown.
|
* or null if it is unknown.
|
||||||
|
|||||||
Reference in New Issue
Block a user