edu.nrao.sss.model.user
Enum Contact.ContactType
java.lang.Object
java.lang.Enum<Contact.ContactType>
edu.nrao.sss.model.user.Contact.ContactType
- All Implemented Interfaces:
- Serializable, Comparable<Contact.ContactType>
- Enclosing class:
- Contact
public static enum Contact.ContactType
- extends Enum<Contact.ContactType>
ADDRESS
public static final Contact.ContactType ADDRESS
EMAIL
public static final Contact.ContactType EMAIL
FAX
public static final Contact.ContactType FAX
PHONE
public static final Contact.ContactType PHONE
URL
public static final Contact.ContactType URL
UNKNOWN
public static final Contact.ContactType UNKNOWN
values
public static Contact.ContactType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Contact.ContactType c : Contact.ContactType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Contact.ContactType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2009. All Rights Reserved.