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)
Deprecated.
|
PhoneNumber(java.lang.String countryCode,
java.lang.String phoneNumber,
java.lang.String countryCodeIso)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getCountryCode() |
java.lang.String |
getCountryCodeIso() |
java.lang.String |
getPhoneNumber() |
java.lang.String |
getRawPhoneNumber() |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<PhoneNumber> CREATOR
public PhoneNumber(@NonNull java.lang.String countryCode, @NonNull java.lang.String phoneNumber, @Nullable java.lang.String countryCodeIso)
countryCode
- The country code for the phone numberphoneNumber
- The remaining portion of the phone numbercountryCodeIso
- The country code iso for 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.@Deprecated public PhoneNumber(java.lang.String countryCode, java.lang.String phoneNumber)
public java.lang.String getPhoneNumber()
public java.lang.String getCountryCode()
public java.lang.String getCountryCodeIso()
public java.lang.String getRawPhoneNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
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