public enum MailState extends Enum<MailState>
| Enum Constant and Description |
|---|
FAILED
Error was encountered during sending mail.
|
READY
Mail ready to be sent.
|
SENT
Mail sent with success.
|
| Modifier and Type | Method and Description |
|---|---|
static MailState |
parse(String state)
Create a MailState object from a String.
|
String |
toString() |
static MailState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MailState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailState READY
public static final MailState SENT
public static final MailState FAILED
public static MailState[] values()
for (MailState c : MailState.values()) System.out.println(c);
public static MailState 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()
public static MailState parse(String state)
state - the state represented as a stringIllegalArgumentException - if the passed stated is invalidCopyright © 2004–2015 XWiki. All rights reserved.