public enum PhoneTypes extends java.lang.Enum<PhoneTypes> implements PhoneType
| Modifier and Type | Method and Description |
|---|---|
static PhoneTypes |
getPhoneTypeById(int phoneTypeId) |
static PhoneTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhoneTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhoneTypes OTHER
public static final PhoneTypes HOME
public static final PhoneTypes WORK
public static final PhoneTypes MOBILE
public static final PhoneTypes FAX
public static PhoneTypes[] values()
for (PhoneTypes c : PhoneTypes.values()) System.out.println(c);
public static PhoneTypes 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 static PhoneTypes getPhoneTypeById(int phoneTypeId)