com.google.i18n.phonenumbers
Enum PhoneNumberUtil.PhoneNumberType
java.lang.Object
java.lang.Enum<PhoneNumberUtil.PhoneNumberType>
com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType
- All Implemented Interfaces:
- Serializable, Comparable<PhoneNumberUtil.PhoneNumberType>
- Enclosing class:
- PhoneNumberUtil
public static enum PhoneNumberUtil.PhoneNumberType
- extends Enum<PhoneNumberUtil.PhoneNumberType>
Type of phone numbers.
FIXED_LINE
public static final PhoneNumberUtil.PhoneNumberType FIXED_LINE
MOBILE
public static final PhoneNumberUtil.PhoneNumberType MOBILE
FIXED_LINE_OR_MOBILE
public static final PhoneNumberUtil.PhoneNumberType FIXED_LINE_OR_MOBILE
TOLL_FREE
public static final PhoneNumberUtil.PhoneNumberType TOLL_FREE
PREMIUM_RATE
public static final PhoneNumberUtil.PhoneNumberType PREMIUM_RATE
SHARED_COST
public static final PhoneNumberUtil.PhoneNumberType SHARED_COST
VOIP
public static final PhoneNumberUtil.PhoneNumberType VOIP
PERSONAL_NUMBER
public static final PhoneNumberUtil.PhoneNumberType PERSONAL_NUMBER
PAGER
public static final PhoneNumberUtil.PhoneNumberType PAGER
UAN
public static final PhoneNumberUtil.PhoneNumberType UAN
VOICEMAIL
public static final PhoneNumberUtil.PhoneNumberType VOICEMAIL
UNKNOWN
public static final PhoneNumberUtil.PhoneNumberType UNKNOWN
values
public static PhoneNumberUtil.PhoneNumberType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PhoneNumberUtil.PhoneNumberType c : PhoneNumberUtil.PhoneNumberType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PhoneNumberUtil.PhoneNumberType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2012 Google. All Rights Reserved.