A C E F G H I N P R S T V

A

AsYouTypeFormatter - Class in com.google.i18n.phonenumbers
A formatter which formats phone numbers as they are entered.

C

clear() - Method in class com.google.i18n.phonenumbers.AsYouTypeFormatter
Clears the internal state of the formatter, so it can be reused.
com.google.i18n.phonenumbers - package com.google.i18n.phonenumbers
 
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.

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.PhoneNumberMatch
 

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, PhoneNumberUtil.PhoneNumberFormat) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number in the specified format using default rules.
format(PhoneNumber, PhoneNumberUtil.PhoneNumberFormat, StringBuilder) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
 
formatByPattern(PhoneNumber, PhoneNumberUtil.PhoneNumberFormat, List<NumberFormat>) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number in the specified format using client-defined formatting rules.
formatInOriginalFormat(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, 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, 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.
formatOutOfCountryCallingNumber(PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Formats a phone number for out-of-country dialing purposes.
formatOutOfCountryKeepingAlphaChars(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.
getCountryCodeForRegion(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the country calling code for a specific region.
getErrorType() - Method in exception com.google.i18n.phonenumbers.NumberParseException
Returns the error type of the exception that has been thrown.
getExampleNumber(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a valid number for the specified region.
getExampleNumberForType(String, PhoneNumberUtil.PhoneNumberType) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a valid number for the specified region and number type.
getInstance() - Static method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets a PhoneNumberUtil instance to carry out international phone number formatting, parsing, or validation.
getLengthOfGeographicalAreaCode(PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets the length of the geographical area code in the nationalNumber_ field of 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) - 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.
getNationalSignificantNumber(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.
getNumberType(PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Gets the type of a phone number.
getRegionCodeForCountryCode(int) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the region code that matches the specific country calling code.
getRegionCodeForNumber(PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Returns the region where a phone number is from.
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).
getSupportedRegions() - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Convenience method to enable tests to get a list of what regions the library has metadata for.

H

hashCode() - Method in class com.google.i18n.phonenumbers.PhoneNumberMatch
 

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().
isAlphaNumber(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Checks if the number is a valid vanity (alpha) number such as 800 MICROSOFT.
isNANPACountry(String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Checks if this is a region under the North American Numbering Plan Administration (NANPA).
isNumberMatch(PhoneNumber, PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Takes two phone numbers and compares them for equality.
isNumberMatch(PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Takes two phone numbers and compares them for equality.
isPossibleNumber(PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Convenience wrapper around PhoneNumberUtil.isPossibleNumberWithReason(PhoneNumber).
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) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Check whether a phone number is a possible number.
isValidNumber(PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Tests whether a phone number matches a valid pattern.
isValidNumberForRegion(PhoneNumber, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Tests whether a phone number is valid for a certain region.

N

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.
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
 

P

parse(String, String) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
Parses a string and returns it in proto buffer format.
parse(String, String, PhoneNumber) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
 
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) - Method in class com.google.i18n.phonenumbers.PhoneNumberUtil
 
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 E.
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.

S

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.PhoneNumberMatch
 
truncateTooLongNumber(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.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.
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.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.

A C E F G H I N P R S T V