* region represented by that country calling code. In the case of multiple
* countries sharing a calling code, such as the NANPA regions, the one
* indicated with "isMainCountryForCode" in the metadata should be first.
- * @type {Object.<number, Array.<string>>}
+ * @type {!Object.<number, Array.<string>>}
*/
i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"]
/**
* A mapping from a region code to the PhoneMetadata for that region.
- * @type {Object.<string, Array>}
+ * @type {!Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
"AC":[,[,,"[2-7]\\d{3,5}","\\d{4,6}"]
* region represented by that country calling code. In the case of multiple
* countries sharing a calling code, such as the NANPA regions, the one
* indicated with "isMainCountryForCode" in the metadata should be first.
- * @type {Object.<number, Array.<string>>}
+ * @type {!Object.<number, Array.<string>>}
*/
i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
1:["US","BB","BS","CA"]
/**
* A mapping from a region code to the PhoneMetadata for that region.
- * @type {Object.<string, Array>}
+ * @type {!Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
"AD":[,[]
* region represented by that country calling code. In the case of multiple
* countries sharing a calling code, such as the NANPA regions, the one
* indicated with "isMainCountryForCode" in the metadata should be first.
- * @type {Object.<number, Array.<string>>}
+ * @type {!Object.<number, Array.<string>>}
*/
i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"]
/**
* A mapping from a region code to the PhoneMetadata for that region.
- * @type {Object.<string, Array>}
+ * @type {!Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
"AC":[,[,,"[2-7]\\d{3,5}","\\d{4,6}"]
/**
* Convenience method to get a list of what regions the library has metadata
* for.
- *
- * @return {!Array<string>} region codes supported by the library.
+ * @return {!Array.<string>} region codes supported by the library.
*/
i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions = function() {
return goog.array.filter(
/**
* Convenience method to get a list of what global network calling codes the
* library has metadata for.
- *
- * @return {!Array<number>} global network calling codes supported by the
+ * @return {!Array.<number>} global network calling codes supported by the
* library.
*/
i18n.phonenumbers.PhoneNumberUtil.prototype.
" * region represented by that country calling code. In the case of multiple\n" +
" * countries sharing a calling code, such as the NANPA regions, the one\n" +
" * indicated with \"isMainCountryForCode\" in the metadata should be first.\n" +
- " * @type {Object.<number, Array.<string>>}\n" +
+ " * @type {!Object.<number, Array.<string>>}\n" +
" */\n";
private static final String COUNTRY_TO_METADATA_COMMENT =
"/**\n" +
" * A mapping from a region code to the PhoneMetadata for that region.\n" +
- " * @type {Object.<string, Array>}\n" +
+ " * @type {!Object.<string, Array>}\n" +
" */\n";
private static final int COPYRIGHT_YEAR = 2010;