Developer

PhoneNumber(String, String) constructor

Syntax
Syntax
public PhoneNumber (
    String msisdn,
    String countryCode
)

Parameters

  • msisdn the phone number (not necessarily a mobile phone number); e.g. +491791234567
  • countryCode the country code; e.g. 49

Remarks

Creates a new instance of PhoneNumber.

All non numeric chars will be removed.

If country is "1" or United States, Tries to parse the specified MSISDN and falls back to use the specified country code if no internationalised format is recognized.