Package com.firebase.ui.auth.data.model
Class PhoneNumber
- java.lang.Object
-
- com.firebase.ui.auth.data.model.PhoneNumber
-
public final class PhoneNumber extends Object
-
-
Constructor Summary
Constructors Constructor Description PhoneNumber(String phoneNumber, String countryIso, String countryCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumber
emptyPhone()
Returns an empty instance of this classString
getCountryCode()
Returns country codeString
getCountryIso()
Returns 2 char country ISOString
getPhoneNumber()
Returns phone number without country codestatic boolean
isCountryValid(PhoneNumber phoneNumber)
static boolean
isValid(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 String getCountryCode()
Returns country code
-
getPhoneNumber
public String getPhoneNumber()
Returns phone number without country code
-
getCountryIso
public String getCountryIso()
Returns 2 char country ISO
-
-