|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.plugin.addrbook.PhoneNumberI18nServiceImpl
public class PhoneNumberI18nServiceImpl
Implements PhoneNumberI18nService which aids the parsing, formatting and validating of international phone numbers using the libphonenumber library.
| Constructor Summary | |
|---|---|
PhoneNumberI18nServiceImpl()
|
|
| Method Summary | |
|---|---|
boolean |
isPhoneNumber(String possibleNumber)
Indicates if the given string is possibly a phone number. |
String |
normalize(String phoneNumber)
Normalizes a String phone number by converting alpha characters to their respective digits on a keypad and then stripping non-digit characters. |
boolean |
phoneNumbersMatch(String aPhoneNumber,
String bPhoneNumber)
Determines whether two String phone numbers match. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhoneNumberI18nServiceImpl()
| Method Detail |
|---|
public String normalize(String phoneNumber)
normalize in interface PhoneNumberI18nServicephoneNumber - a String which represents a phone number to
normalize
PhoneNumberI18nService.normalize(String)
public boolean phoneNumbersMatch(String aPhoneNumber,
String bPhoneNumber)
phoneNumbersMatch in interface PhoneNumberI18nServiceaPhoneNumber - a String which represents a phone number to
match to bPhoneNumberbPhoneNumber - a String which represents a phone number to
match to aPhoneNumber
public boolean isPhoneNumber(String possibleNumber)
isPhoneNumber in interface PhoneNumberI18nServicepossibleNumber - the string to be verified
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||