-
@RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP) public final class PhoneNumber
-
-
Constructor Summary
Constructors Constructor Description PhoneNumber(String phoneNumber, String countryIso, String countryCode)
-
Method Summary
Modifier and Type Method Description static PhoneNumberemptyPhone()Returns an empty instance of this class static booleanisValid(PhoneNumber phoneNumber)static booleanisCountryValid(PhoneNumber phoneNumber)StringgetCountryCode()Returns country code StringgetPhoneNumber()Returns phone number without country code StringgetCountryIso()Returns 2 char country ISO -
-
Method Detail
-
emptyPhone
static PhoneNumber emptyPhone()
Returns an empty instance of this class
-
isValid
static boolean isValid(PhoneNumber phoneNumber)
-
isCountryValid
static boolean isCountryValid(PhoneNumber phoneNumber)
-
getCountryCode
String getCountryCode()
Returns country code
-
getPhoneNumber
String getPhoneNumber()
Returns phone number without country code
-
getCountryIso
String getCountryIso()
Returns 2 char country ISO
-
-
-
-