public enum ContactMethodType extends Enum<ContactMethodType> implements Serializable
| Enum Constant and Description |
|---|
Account
Contact through social media or similar account.
|
Chat
Contact through chat account.
|
Email
Contact through email.
|
Other
Another usage.
|
Phone
Contact through telephone number.
|
Profile
Contact through open metadata profile.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description for the enum.
|
String |
getName()
Return the descriptive name for the ContactMethodType enum instance
|
int |
getOrdinal()
Return the numerical value for the enum.
|
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 getDescription()
public String getName()
Copyright © 2018–2019 ODPi. All rights reserved.