public enum ContactMethodType extends Enum<ContactMethodType> implements Serializable
| Enum Constant and Description |
|---|
ACCOUNT |
CHAT |
EMAIL |
OTHER |
PHONE |
PROFILE |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description of the enumeration.
|
String |
getName()
Return the default name of the enumeration.
|
int |
getOrdinal()
Return the numeric representation of the enumeration.
|
String |
toString()
toString() JSON-style
|
static ContactMethodType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContactMethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContactMethodType EMAIL
public static final ContactMethodType PHONE
public static final ContactMethodType CHAT
public static final ContactMethodType PROFILE
public static final ContactMethodType ACCOUNT
public static final ContactMethodType OTHER
public static ContactMethodType[] values()
for (ContactMethodType c : ContactMethodType.values()) System.out.println(c);
public static ContactMethodType 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 int getOrdinal()
public String getName()
public String getDescription()
public String toString()
toString in class Enum<ContactMethodType>Copyright © 2018–2019 ODPi. All rights reserved.