com.google.i18n.phonenumbers
Enum Phonenumber.PhoneNumber.CountryCodeSource

java.lang.Object
  extended by java.lang.Enum<Phonenumber.PhoneNumber.CountryCodeSource>
      extended by 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
FROM_DEFAULT_COUNTRY
           
FROM_NUMBER_WITH_IDD
           
FROM_NUMBER_WITH_PLUS_SIGN
           
FROM_NUMBER_WITHOUT_PLUS_SIGN
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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
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 name
java.lang.NullPointerException - if the argument is null


Copyright © 2011 Google. All Rights Reserved.