Package com.firebase.ui.auth.data.model
Class PhoneNumber
- java.lang.Object
-
- com.firebase.ui.auth.data.model.PhoneNumber
-
public final class PhoneNumber extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PhoneNumber(java.lang.String phoneNumber, java.lang.String countryIso, java.lang.String countryCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumberemptyPhone()Returns an empty instance of this classjava.lang.StringgetCountryCode()Returns country codejava.lang.StringgetCountryIso()Returns 2 char country ISOjava.lang.StringgetPhoneNumber()Returns phone number without country codestatic booleanisCountryValid(PhoneNumber phoneNumber)static booleanisValid(PhoneNumber phoneNumber)
-
-
-
Method Detail
-
emptyPhone
public static PhoneNumber emptyPhone()
Returns an empty instance of this class
-
isValid
public static boolean isValid(PhoneNumber phoneNumber)
-
isCountryValid
public static boolean isCountryValid(PhoneNumber phoneNumber)
-
getCountryCode
public java.lang.String getCountryCode()
Returns country code
-
getPhoneNumber
public java.lang.String getPhoneNumber()
Returns phone number without country code
-
getCountryIso
public java.lang.String getCountryIso()
Returns 2 char country ISO
-
-