Modifier and Type | Field and Description |
---|---|
static Pattern |
PHONE_NUMBER_INTERNATIONAL_VALIDATOR
The pattern for an international phone number
|
Modifier | Constructor and Description |
---|---|
private |
SMSHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPhoneNumber(String phoneNumber)
Check if the phoneNumber is in the international format defined by the admin
|
static String |
transformPhoneNumber(String phoneNumber)
Transform the phone number to the format defined by the admin
|
public static final Pattern PHONE_NUMBER_INTERNATIONAL_VALIDATOR
private SMSHelper()
public static String transformPhoneNumber(String phoneNumber)
phoneNumber
- the phone number to transformpublic static boolean checkPhoneNumber(String phoneNumber)
phoneNumber
- the phone numbertrue
if the phone number matches the format,false
otherwise