public enum MessageStatus extends Enum<MessageStatus>
Enum Constant and Description |
---|
DRAFT
Status of a newly created message which was not sent yet.
|
READ
Status of a received message after it was processed / read.
|
SENT
Status of a message after it was sent to a user.
|
UNREAD
Status of a received message which was not processed / read yet.
|
Modifier and Type | Method and Description |
---|---|
static MessageStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageStatus DRAFT
public static final MessageStatus SENT
public static final MessageStatus UNREAD
public static final MessageStatus READ
public static MessageStatus[] values()
for (MessageStatus c : MessageStatus.values()) System.out.println(c);
public static MessageStatus 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 null