public abstract class PhoneNumberUtils extends Object
Some methods to work with phone numbers.
| Modifier and Type | Method and Description |
|---|---|
static String |
cleanPhoneNumber(String phoneNumber)
Create a new phone number from the specified one that only contains
numbers, '*', '#'.
|
static String |
cleanPhoneNumber(String phoneNumber,
boolean preferPlusInsteadOf00)
Create a new phone number from the specified one that only contains
numbers, '*', '#' and '+'.
|
public static String cleanPhoneNumber(String phoneNumber)
phoneNumber - the original phone numberpublic static String cleanPhoneNumber(String phoneNumber, boolean preferPlusInsteadOf00)
phoneNumber - the original phone number (can be null)preferPlusInsteadOf00 - if true a beginning with 00 will be replaced with +;
if false a beginning with + will be replaced with 00null when the original number is nullCopyright © 2017 bremersee.org. All rights reserved.