public final class PhoneNumber extends Object
| Constructor and Description |
|---|
PhoneNumber(String phoneNumber,
String countryIso,
String countryCode) |
| Modifier and Type | Method and Description |
|---|---|
static PhoneNumber |
emptyPhone()
Returns an empty instance of this class
|
String |
getCountryCode()
Returns country code
|
String |
getCountryIso()
Returns 2 char country ISO
|
String |
getPhoneNumber()
Returns phone number without country code
|
static boolean |
isCountryValid(PhoneNumber phoneNumber) |
static boolean |
isValid(PhoneNumber phoneNumber) |
public static PhoneNumber emptyPhone()
public static boolean isValid(PhoneNumber phoneNumber)
public static boolean isCountryValid(PhoneNumber phoneNumber)
public String getCountryCode()
public String getPhoneNumber()
public String getCountryIso()