Package | Description |
---|---|
com.google.i18n.phonenumbers |
Modifier and Type | Method and Description |
---|---|
static PhoneNumberUtil.PhoneNumberFormat |
PhoneNumberUtil.PhoneNumberFormat.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhoneNumberUtil.PhoneNumberFormat[] |
PhoneNumberUtil.PhoneNumberFormat.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
PhoneNumberUtil.format(Phonenumber.PhoneNumber number,
PhoneNumberUtil.PhoneNumberFormat numberFormat)
Formats a phone number in the specified format using default rules.
|
void |
PhoneNumberUtil.format(Phonenumber.PhoneNumber number,
PhoneNumberUtil.PhoneNumberFormat numberFormat,
java.lang.StringBuilder formattedNumber)
Same as
#format(PhoneNumber, PhoneNumberFormat) , but accepts a mutable StringBuilder as
a parameter to decrease object creation when invoked many times. |
java.lang.String |
PhoneNumberUtil.formatByPattern(Phonenumber.PhoneNumber number,
PhoneNumberUtil.PhoneNumberFormat numberFormat,
java.util.List<Phonemetadata.NumberFormat> userDefinedFormats)
Formats a phone number in the specified format using client-defined formatting rules.
|
Copyright © 2022 Google. All Rights Reserved.