public static enum PhoneNumber.Type extends Enum<PhoneNumber.Type>
| Modifier and Type | Method and Description |
|---|---|
static PhoneNumber.Type |
forValue(String value)
Generate a Type from a string.
|
String |
toString() |
static PhoneNumber.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PhoneNumber.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhoneNumber.Type LANDLINE
public static final PhoneNumber.Type MOBILE
public static final PhoneNumber.Type VOIP
public static PhoneNumber.Type[] values()
for (PhoneNumber.Type c : PhoneNumber.Type.values()) System.out.println(c);
public static PhoneNumber.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<PhoneNumber.Type>public static PhoneNumber.Type forValue(String value)
value - string valueCopyright © 2011 Twilio, Inc. All Rights Reserved.