Package com.google.i18n.phonenumbers
Enum Phonenumber.PhoneNumber.CountryCodeSource
- java.lang.Object
-
- java.lang.Enum<Phonenumber.PhoneNumber.CountryCodeSource>
-
- com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Phonenumber.PhoneNumber.CountryCodeSource>
- Enclosing class:
- Phonenumber.PhoneNumber
public static enum Phonenumber.PhoneNumber.CountryCodeSource extends java.lang.Enum<Phonenumber.PhoneNumber.CountryCodeSource>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FROM_DEFAULT_COUNTRY
FROM_NUMBER_WITH_IDD
FROM_NUMBER_WITH_PLUS_SIGN
FROM_NUMBER_WITHOUT_PLUS_SIGN
UNSPECIFIED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Phonenumber.PhoneNumber.CountryCodeSource
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Phonenumber.PhoneNumber.CountryCodeSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FROM_NUMBER_WITH_PLUS_SIGN
public static final Phonenumber.PhoneNumber.CountryCodeSource FROM_NUMBER_WITH_PLUS_SIGN
-
FROM_NUMBER_WITH_IDD
public static final Phonenumber.PhoneNumber.CountryCodeSource FROM_NUMBER_WITH_IDD
-
FROM_NUMBER_WITHOUT_PLUS_SIGN
public static final Phonenumber.PhoneNumber.CountryCodeSource FROM_NUMBER_WITHOUT_PLUS_SIGN
-
FROM_DEFAULT_COUNTRY
public static final Phonenumber.PhoneNumber.CountryCodeSource FROM_DEFAULT_COUNTRY
-
UNSPECIFIED
public static final Phonenumber.PhoneNumber.CountryCodeSource UNSPECIFIED
-
-
Method Detail
-
values
public static Phonenumber.PhoneNumber.CountryCodeSource[] 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 (Phonenumber.PhoneNumber.CountryCodeSource c : Phonenumber.PhoneNumber.CountryCodeSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Phonenumber.PhoneNumber.CountryCodeSource valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-