public enum ContactType extends Enum<ContactType>
Enum Constant and Description |
---|
AIM |
EMAIL |
FB |
GOOGLE |
IN |
PHONE |
SKYPE |
TWITTER |
WEBSITE |
Modifier and Type | Method and Description |
---|---|
static ContactType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContactType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContactType GOOGLE
public static final ContactType TWITTER
public static final ContactType IN
public static final ContactType FB
public static final ContactType EMAIL
public static final ContactType AIM
public static final ContactType SKYPE
public static final ContactType PHONE
public static final ContactType WEBSITE
public static ContactType[] values()
for (ContactType c : ContactType.values()) System.out.println(c);
public static ContactType 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 nullCopyright © 2014. All Rights Reserved.