Package | Description |
---|---|
com.google.i18n.phonenumbers |
Modifier and Type | Method and Description |
---|---|
PhoneNumberUtil.PhoneNumberType |
PhoneNumberUtil.getNumberType(Phonenumber.PhoneNumber number)
Gets the type of a phone number.
|
static PhoneNumberUtil.PhoneNumberType |
PhoneNumberUtil.PhoneNumberType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PhoneNumberUtil.PhoneNumberType[] |
PhoneNumberUtil.PhoneNumberType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Phonenumber.PhoneNumber |
PhoneNumberUtil.getExampleNumberForType(PhoneNumberUtil.PhoneNumberType type)
Gets a valid number for the specified number type (it may belong to any country).
|
Phonenumber.PhoneNumber |
PhoneNumberUtil.getExampleNumberForType(String regionCode,
PhoneNumberUtil.PhoneNumberType type)
Gets a valid number for the specified region and number type.
|
boolean |
PhoneNumberUtil.isNumberGeographical(PhoneNumberUtil.PhoneNumberType numberType,
int countryCallingCode)
Tests whether a phone number has a geographical association, as represented by its type and the
country it belongs to.
|
Copyright © 2016 Google. All Rights Reserved.