Using custom NumberFormat in google's libphonenumber
There is a method

    PhoneNumberUtil::formatByPattern

inside libphonenumber, but absolutely no documentation on how to specify the pattern in the `NumberFormat` object.

Am I missing something here, or is the documentation missing here?

The only doc I can find is the [javaDoc][1], but it's only saying that I should use a String in `setPattern`


  [1]: http://www.jarvana.com/jarvana/view/com/googlecode/libphonenumber/libphonenumber/3.4/libphonenumber-3.4-javadoc.jar!/com/google/i18n/phonenumbers/Phonemetadata.NumberFormat.html
Using custom NumberFormat in google's libphonenumber
===

There is a method

    PhoneNumberUtil::formatByPattern

inside libphonenumber, but absolutely no documentation on how to specify the pattern in the `NumberFormat` object.

Am I missing something here, or is the documentation missing here?

The only doc I can find is the [javaDoc][1], but it's only saying that I should use a String in `setPattern`


  [1]: http://www.jarvana.com/jarvana/view/com/googlecode/libphonenumber/libphonenumber/3.4/libphonenumber-3.4-javadoc.jar!/com/google/i18n/phonenumbers/Phonemetadata.NumberFormat.html