public static enum PhoneNumber.TypeEnum extends Enum<PhoneNumber.TypeEnum>
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static PhoneNumber.TypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PhoneNumber.TypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhoneNumber.TypeEnum MOBILE
public static final PhoneNumber.TypeEnum WORK
public static final PhoneNumber.TypeEnum HOME
public static final PhoneNumber.TypeEnum FAX
public static PhoneNumber.TypeEnum[] values()
for (PhoneNumber.TypeEnum c : PhoneNumber.TypeEnum.values()) System.out.println(c);
public static PhoneNumber.TypeEnum 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.TypeEnum>Copyright © 2015. All rights reserved.