public static enum Phone.LineType extends java.lang.Enum<Phone.LineType>
Enum Constant and Description |
---|
FIXED_VOIP |
LANDLINE |
MOBILE |
NON_FIXED_VOIP |
OTHER |
PREMIUM |
TOLL_FREE |
VOICEMAIL |
Modifier and Type | Method and Description |
---|---|
static Phone.LineType |
forValue(java.lang.String value) |
java.lang.String |
toString() |
static Phone.LineType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Phone.LineType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Phone.LineType LANDLINE
public static final Phone.LineType MOBILE
public static final Phone.LineType VOICEMAIL
public static final Phone.LineType TOLL_FREE
public static final Phone.LineType PREMIUM
public static final Phone.LineType NON_FIXED_VOIP
public static final Phone.LineType FIXED_VOIP
public static final Phone.LineType OTHER
public static Phone.LineType[] values()
for (Phone.LineType c : Phone.LineType.values()) System.out.println(c);
public static Phone.LineType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<Phone.LineType>
public static Phone.LineType forValue(java.lang.String value)