public final class PhoneNumber
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<PhoneNumber> |
CREATOR |
Constructor and Description |
---|
PhoneNumber(java.lang.String countryCode,
java.lang.String phoneNumber)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getCountryCode() |
java.lang.String |
getPhoneNumber() |
java.lang.String |
getRawPhoneNumber() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<PhoneNumber> CREATOR
public PhoneNumber(java.lang.String countryCode, java.lang.String phoneNumber)
countryCode
- The country code for the phone numberphoneNumber
- The remaining portion of the phone number
While it is safe to provide any characters for the `countryCode` and `phoneNumber`, the
values should only contain digits. All other characters will be stripped
from this value when it is used.public java.lang.String getPhoneNumber()
public java.lang.String getCountryCode()
public java.lang.String getRawPhoneNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable