Skip navigation links
A B C E F G H I L M N P R S T V W 

A

addIntlNumberFormat(Phonemetadata.NumberFormat) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
addLeadingDigitsPattern(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
addMetadata(Phonemetadata.PhoneMetadata) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
addNumberFormat(Phonemetadata.NumberFormat) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
addPossibleLength(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
addPossibleLengthLocalOnly(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
AlternateFormatsCountryCodeSet - Class in com.google.i18n.phonenumbers
 
AlternateFormatsCountryCodeSet() - Constructor for class com.google.i18n.phonenumbers.AlternateFormatsCountryCodeSet
 
AsYouTypeFormatter - Class in com.google.i18n.phonenumbers
A formatter which formats phone numbers as they are entered.

B

build() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat.Builder
 
build() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata.Builder
 
build() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection.Builder
 
build() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc.Builder
 
Builder() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat.Builder
 
Builder() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata.Builder
 
Builder() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection.Builder
 
Builder() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc.Builder
 

C

clear() - Method in class com.google.i18n.phonenumbers.AsYouTypeFormatter
Clears the internal state of the formatter, so it can be reused.
clear() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
clear() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearCountryCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearCountryCodeSource() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearExampleNumber() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
clearExtension() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearIntlNumberFormat() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearItalianLeadingZero() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearLeadingZeroPossible() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearMainCountryForCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearMobileNumberPortableRegion() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearNationalNumber() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearNationalNumberPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
clearNationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearNationalPrefixFormattingRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
clearNationalPrefixTransformRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearNumberOfLeadingZeros() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearPossibleLength() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
clearPossibleLengthLocalOnly() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
clearPossibleNumberPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
clearPreferredDomesticCarrierCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearPreferredExtnPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearPreferredInternationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
clearRawInput() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
clearSameMobileAndFixedLinePattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
com.google.i18n.phonenumbers - package com.google.i18n.phonenumbers
 
com.google.i18n.phonenumbers.internal - package com.google.i18n.phonenumbers.internal
 
connectsToEmergencyNumber(String, String) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Returns true if the given number, exactly as dialed, might be used to connect to an emergency service in the given region.
convertAlphaCharactersInNumber(String) - Static method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Converts all alpha characters in a number to their respective digits on a keypad, but retains existing formatting.
CountryCodeToRegionCodeMap - Class in com.google.i18n.phonenumbers
 
CountryCodeToRegionCodeMap() - Constructor for class com.google.i18n.phonenumbers.CountryCodeToRegionCodeMap
 
create() - Static method in class com.google.i18n.phonenumbers.internal.RegexBasedMatcher
 
createInstance(MetadataLoader) - Static method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Create a new PhoneNumberUtil instance to carry out international phone number formatting, parsing, or validation.

E

end() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
Returns the exclusive end index of the matched phone number within the searched text.
equals(Object) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
equals(Object) - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
 
exactlySameAs(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
exactlySameAs(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 

F

findNumbers(CharSequence, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns an iterable over all PhoneNumberMatches in text.
findNumbers(CharSequence, String, PhoneNumberUtil.Leniency, long) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns an iterable over all PhoneNumberMatches in text.
format(Phonenumber.PhoneNumber, PhoneNumberUtil.PhoneNumberFormat) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number in the specified format using default rules.
format(Phonenumber.PhoneNumber, PhoneNumberUtil.PhoneNumberFormat, StringBuilder) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Same as #format(PhoneNumber, PhoneNumberFormat), but accepts a mutable StringBuilder as a parameter to decrease object creation when invoked many times.
formatByPattern(Phonenumber.PhoneNumber, PhoneNumberUtil.PhoneNumberFormat, List<Phonemetadata.NumberFormat>) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number in the specified format using client-defined formatting rules.
formatInOriginalFormat(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number using the original phone number format that the number is parsed from.
formatNationalNumberWithCarrierCode(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number in national format for dialing using the carrier as specified in the carrierCode.
formatNationalNumberWithPreferredCarrierCode(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number in national format for dialing using the carrier as specified in the preferredDomesticCarrierCode field of the PhoneNumber object passed in.
formatNumberForMobileDialing(Phonenumber.PhoneNumber, String, boolean) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns a number formatted in such a way that it can be dialed from a mobile phone in a specific region.
formatOutOfCountryCallingNumber(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number for out-of-country dialing purposes.
formatOutOfCountryKeepingAlphaChars(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number for out-of-country dialing purposes.

G

getAsYouTypeFormatter(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets an AsYouTypeFormatter for the specific region.
getCarrierSpecific() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getCountryCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getCountryCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getCountryCodeForRegion(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the country calling code for a specific region.
getCountryCodeSource() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getCountryMobileToken(int) - Static method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the mobile token for the provided country calling code if it has one, otherwise returns an empty string.
getDomesticCarrierCodeFormattingRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
getEmergency() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getErrorType() - Method in exception com.google.i18n.phonenumbers.NumberParseException
Returns the error type of the exception that has been thrown.
getExampleNumber() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getExampleNumber(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a valid number for the specified region.
getExampleNumberForNonGeoEntity(int) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a valid number for the specified country calling code for a non-geographical entity.
getExampleNumberForType(String, PhoneNumberUtil.PhoneNumberType) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a valid number for the specified region and number type.
getExampleNumberForType(PhoneNumberUtil.PhoneNumberType) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a valid number for the specified number type (it may belong to any country).
getExpectedCost(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Gets the expected cost category of a short number (however, nothing is implied about its validity).
getExpectedCostForRegion(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Gets the expected cost category of a short number when dialed from a region (however, nothing is implied about its validity).
getExtension() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getFixedLine() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getFormat() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
getGeneralDesc() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getId() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getInstance() - Static method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a PhoneNumberUtil instance to carry out international phone number formatting, parsing, or validation.
getInstance() - Static method in class com.google.i18n.phonenumbers.ShortNumberInfo
Returns the singleton instance of the ShortNumberInfo.
getInternationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getIntlNumberFormat(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getInvalidExampleNumber(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets an invalid number for the specified region.
getLeadingDigits() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getLeadingDigitsPattern(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
getLengthOfGeographicalAreaCode(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets the length of the geographical area code from the PhoneNumber object passed in, so that clients could use it to split a national significant number into geographical area code and subscriber number.
getLengthOfNationalDestinationCode(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets the length of the national destination code (NDC) from the PhoneNumber object passed in, so that clients could use it to split a national significant number into NDC and subscriber number.
getMainCountryForCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getMetadataCount() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
getMetadataList() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
getMobile() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getNationalNumber() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getNationalNumberPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getNationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getNationalPrefixFormattingRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
getNationalPrefixForParsing() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getNationalPrefixTransformRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getNationalSignificantNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets the national significant number of the a phone number.
getNddPrefixForRegion(String, boolean) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the national dialling prefix for a specific region.
getNoInternationalDialling() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getNumberFormat(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getNumberOfLeadingZeros() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getNumberType(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets the type of a phone number.
getPager() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
getPatternForRegex(String) - Method in class com.google.i18n.phonenumbers.RegexCache
 
getPersonalNumber() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getPossibleLength(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPossibleLengthCount() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPossibleLengthList() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPossibleLengthLocalOnly(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPossibleLengthLocalOnlyCount() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPossibleLengthLocalOnlyList() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPossibleNumberPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
getPreferredDomesticCarrierCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getPreferredExtnPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getPreferredInternationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getPremiumRate() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getRawInput() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
getRegionCodeForCountryCode(int) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the region code that matches the specific country calling code.
getRegionCodeForNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the region where a phone number is from.
getRegionCodesForCountryCode(int) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns a list with the region codes that match the specific country calling code.
getRememberedPosition() - Method in class com.google.i18n.phonenumbers.AsYouTypeFormatter
Returns the current position in the partially formatted phone number of the character which was previously passed in as the parameter of AsYouTypeFormatter.inputDigitAndRememberPosition(char).
getSharedCost() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getShortCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getStandardRate() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getSupportedGlobalNetworkCallingCodes() - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Convenience method to get a list of what global network calling codes the library has metadata for.
getSupportedRegions() - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Convenience method to get a list of what regions the library has metadata for.
getTollFree() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getUan() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getVoicemail() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
getVoip() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 

H

hasCarrierSpecific() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasCountryCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasCountryCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasCountryCodeSource() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasDomesticCarrierCodeFormattingRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
hasEmergency() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasExampleNumber() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
hasExtension() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasFixedLine() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasFormat() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
hasGeneralDesc() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hashCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hashCode() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
 
hasId() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasInternationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasItalianLeadingZero() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasLeadingDigits() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasLeadingZeroPossible() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasMainCountryForCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasMobile() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasMobileNumberPortableRegion() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasNationalNumber() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasNationalNumberPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
hasNationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasNationalPrefixFormattingRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
hasNationalPrefixForParsing() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasNationalPrefixOptionalWhenFormatting() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
hasNationalPrefixTransformRule() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasNoInternationalDialling() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasNumberOfLeadingZeros() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasPager() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
hasPersonalNumber() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasPossibleNumberPattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
hasPreferredDomesticCarrierCode() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasPreferredExtnPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasPreferredInternationalPrefix() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasPremiumRate() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasRawInput() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
hasSameMobileAndFixedLinePattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasSharedCost() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasShortCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasStandardRate() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasTollFree() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasUan() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasVoicemail() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
hasVoip() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 

I

inputDigit(char) - Method in class com.google.i18n.phonenumbers.AsYouTypeFormatter
Formats a phone number on-the-fly as each digit is entered.
inputDigitAndRememberPosition(char) - Method in class com.google.i18n.phonenumbers.AsYouTypeFormatter
Same as AsYouTypeFormatter.inputDigit(char), but remembers the position where nextChar is inserted, so that it can be retrieved later by using AsYouTypeFormatter.getRememberedPosition().
intlNumberFormats() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
intlNumberFormatSize() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
isAlphaNumber(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Checks if the number is a valid vanity (alpha) number such as 800 MICROSOFT.
isCarrierSpecific(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Given a valid short number, determines whether it is carrier-specific (however, nothing is implied about its validity).
isEmergencyNumber(String, String) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Returns true if the given number exactly matches an emergency service number in the given region.
isItalianLeadingZero() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
isLeadingZeroPossible() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
isMainCountryForCode() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
isMobileNumberPortableRegion() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
isMobileNumberPortableRegion(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns true if the supplied region supports mobile number portability.
isNANPACountry(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Checks if this is a region under the North American Numbering Plan Administration (NANPA).
isNationalPrefixOptionalWhenFormatting() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
isNumberGeographical(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Tests whether a phone number has a geographical association.
isNumberGeographical(PhoneNumberUtil.PhoneNumberType, int) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Tests whether a phone number has a geographical association, as represented by its type and the country it belongs to.
isNumberMatch(Phonenumber.PhoneNumber, Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Takes two phone numbers and compares them for equality.
isNumberMatch(String, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Takes two phone numbers as strings and compares them for equality.
isNumberMatch(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Takes two phone numbers and compares them for equality.
isPossibleNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
isPossibleNumber(String, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Check whether a phone number is a possible number given a number in the form of a string, and the region where the number could be dialed from.
isPossibleNumberWithReason(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Check whether a phone number is a possible number.
isPossibleShortNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Check whether a short number is a possible number.
isPossibleShortNumberForRegion(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Check whether a short number is a possible number when dialed from the given region.
isSameMobileAndFixedLinePattern() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
isValidNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Tests whether a phone number matches a valid pattern.
isValidNumberForRegion(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Tests whether a phone number is valid for a certain region.
isValidShortNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Tests whether a short number matches a valid pattern.
isValidShortNumberForRegion(Phonenumber.PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.ShortNumberInfo
Tests whether a short number matches a valid pattern in a region.

L

leadingDigitPatterns() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
leadingDigitsPatternSize() - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
loadMetadata(String) - Method in interface com.google.i18n.phonenumbers.MetadataLoader
Returns an input stream corresponding to the metadata to load.

M

MatcherApi - Interface in com.google.i18n.phonenumbers.internal
Internal phonenumber matching API used to isolate the underlying implementation of the matcher and allow different implementations to be swapped in easily.
matchesNationalNumber(String, Phonemetadata.PhoneNumberDesc, boolean) - Method in interface com.google.i18n.phonenumbers.internal.MatcherApi
Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the given PhoneNumberDesc message.
matchesNationalNumber(String, Phonemetadata.PhoneNumberDesc, boolean) - Method in class com.google.i18n.phonenumbers.internal.RegexBasedMatcher
 
mergeFrom(Phonemetadata.NumberFormat) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat.Builder
 
mergeFrom(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc.Builder
 
mergeFrom(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
MetadataLoader - Interface in com.google.i18n.phonenumbers
Interface for clients to specify a customized phone metadata loader, useful for Android apps to load Android resources since the library loads Java resources by default, e.g.

N

newBuilder() - Static method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
newBuilder() - Static method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
newBuilder() - Static method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
newBuilder() - Static method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
normalizeDigitsOnly(String) - Static method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Normalizes a string of characters representing a phone number.
number() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
Returns the phone number matched by the receiver.
NumberFormat() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
numberFormats() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
numberFormatSize() - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
NumberParseException - Exception in com.google.i18n.phonenumbers
Generic exception class for errors encountered when parsing phone numbers.
NumberParseException(NumberParseException.ErrorType, String) - Constructor for exception com.google.i18n.phonenumbers.NumberParseException
 
NumberParseException.ErrorType - Enum in com.google.i18n.phonenumbers
The reason that a string could not be interpreted as a phone number.

P

parse(String, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Parses a string and returns it as a phone number in proto buffer format.
parse(String, String, Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Same as PhoneNumberUtil.parse(String, String), but accepts mutable PhoneNumber as a parameter to decrease object creation when invoked many times.
parseAndKeepRawInput(String, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Parses a string and returns it in proto buffer format.
parseAndKeepRawInput(String, String, Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Same asPhoneNumberUtil.parseAndKeepRawInput(String, String), but accepts a mutable PhoneNumber as a parameter to decrease object creation when invoked many times.
Phonemetadata - Class in com.google.i18n.phonenumbers
 
PhoneMetadata() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
Phonemetadata.NumberFormat - Class in com.google.i18n.phonenumbers
 
Phonemetadata.NumberFormat.Builder - Class in com.google.i18n.phonenumbers
Provides a dummy builder to 'emulate' the API of the code generated by the latest version of Protocol Buffers.
Phonemetadata.PhoneMetadata - Class in com.google.i18n.phonenumbers
 
Phonemetadata.PhoneMetadata.Builder - Class in com.google.i18n.phonenumbers
Provides a dummy builder.
Phonemetadata.PhoneMetadataCollection - Class in com.google.i18n.phonenumbers
 
Phonemetadata.PhoneMetadataCollection.Builder - Class in com.google.i18n.phonenumbers
Provides a dummy builder.
Phonemetadata.PhoneNumberDesc - Class in com.google.i18n.phonenumbers
 
Phonemetadata.PhoneNumberDesc.Builder - Class in com.google.i18n.phonenumbers
Provides a dummy builder.
PhoneMetadataCollection() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
Phonenumber - Class in com.google.i18n.phonenumbers
 
PhoneNumber() - Constructor for class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
Phonenumber.PhoneNumber - Class in com.google.i18n.phonenumbers
 
Phonenumber.PhoneNumber.CountryCodeSource - Enum in com.google.i18n.phonenumbers
 
PhoneNumberDesc() - Constructor for class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
PhoneNumberMatch - Class in com.google.i18n.phonenumbers
The immutable match of a phone number within a piece of text.
PhoneNumberUtil - Class in com.google.i18n.phonenumbers
Utility for international phone numbers.
PhoneNumberUtil.Leniency - Enum in com.google.i18n.phonenumbers
Leniency when finding potential phone numbers in text segments.
PhoneNumberUtil.MatchType - Enum in com.google.i18n.phonenumbers
Types of phone number matches.
PhoneNumberUtil.PhoneNumberFormat - Enum in com.google.i18n.phonenumbers
INTERNATIONAL and NATIONAL formats are consistent with the definition in ITU-T Recommendation E123.
PhoneNumberUtil.PhoneNumberType - Enum in com.google.i18n.phonenumbers
Type of phone numbers.
PhoneNumberUtil.ValidationResult - Enum in com.google.i18n.phonenumbers
Possible outcomes when testing if a PhoneNumber is possible.

R

rawString() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
Returns the raw string matched as a phone number in the searched text.
readExternal(ObjectInput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
readExternal(ObjectInput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
readExternal(ObjectInput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
readExternal(ObjectInput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
RegexBasedMatcher - Class in com.google.i18n.phonenumbers.internal
Implementation of the matcher API using the regular expressions in the PhoneNumberDesc proto message to match numbers.
RegexCache - Class in com.google.i18n.phonenumbers
LRU Cache for compiled regular expressions used by the libphonenumbers libary.
RegexCache(int) - Constructor for class com.google.i18n.phonenumbers.RegexCache
 
REGION_CODE_FOR_NON_GEO_ENTITY - Static variable in class com.google.i18n.phonenumbers.PhoneNumberUtil
 

S

setCarrierSpecific(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setCountryCode(int) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setCountryCode(int) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setCountryCodeSource(Phonenumber.PhoneNumber.CountryCodeSource) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setDomesticCarrierCodeFormattingRule(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
setEmergency(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setExampleNumber(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
setExtension(String) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setFixedLine(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setFormat(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
setGeneralDesc(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setId(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setInternationalPrefix(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setItalianLeadingZero(boolean) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setLeadingDigits(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setLeadingZeroPossible(boolean) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setMainCountryForCode(boolean) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setMobile(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setMobileNumberPortableRegion(boolean) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setNationalNumber(long) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setNationalNumberPattern(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
setNationalPrefix(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setNationalPrefixFormattingRule(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
setNationalPrefixForParsing(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setNationalPrefixOptionalWhenFormatting(boolean) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
setNationalPrefixTransformRule(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setNoInternationalDialling(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setNumberOfLeadingZeros(int) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setPager(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setPattern(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
setPersonalNumber(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setPossibleNumberPattern(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
setPreferredDomesticCarrierCode(String) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setPreferredExtnPrefix(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setPreferredInternationalPrefix(String) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setPremiumRate(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setRawInput(String) - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
setSameMobileAndFixedLinePattern(boolean) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setSharedCost(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setShortCode(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setStandardRate(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setTollFree(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setUan(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setVoicemail(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
setVoip(Phonemetadata.PhoneNumberDesc) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
ShortNumberInfo - Class in com.google.i18n.phonenumbers
Methods for getting information about short phone numbers, such as short codes and emergency numbers.
ShortNumberInfo.ShortNumberCost - Enum in com.google.i18n.phonenumbers
Cost categories of short numbers.
ShortNumbersRegionCodeSet - Class in com.google.i18n.phonenumbers
 
ShortNumbersRegionCodeSet() - Constructor for class com.google.i18n.phonenumbers.ShortNumbersRegionCodeSet
 
start() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
Returns the start index of the matched phone number within the searched text.

T

toString() - Method in exception com.google.i18n.phonenumbers.NumberParseException
 
toString() - Method in class com.google.i18n.phonenumbers.Phonenumber.PhoneNumber
 
toString() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
 
truncateTooLongNumber(Phonenumber.PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Attempts to extract a valid number from a phone number that is too long to be valid, and resets the PhoneNumber object passed in to that valid version.

V

valueOf(String) - Static method in enum com.google.i18n.phonenumbers.NumberParseException.ErrorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.MatchType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.i18n.phonenumbers.ShortNumberInfo.ShortNumberCost
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.i18n.phonenumbers.NumberParseException.ErrorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.MatchType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.i18n.phonenumbers.ShortNumberInfo.ShortNumberCost
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeExternal(ObjectOutput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
 
writeExternal(ObjectOutput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata
 
writeExternal(ObjectOutput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection
 
writeExternal(ObjectOutput) - Method in class com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc
 
A B C E F G H I L M N P R S T V W 
Skip navigation links

Copyright © 2016 Google. All Rights Reserved.