public enum MessageStatus extends Enum<MessageStatus>
INBOX
implies regular message
TRASHED
implies message has been moved to trash. Messages deleted from the trash bin are permanently
deleted
ARCHIVED
implies message has been archived.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 INBOX
public static final MessageStatus TRASHED
public static final MessageStatus ARCHIVED
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 nullCopyright © 2017. All rights reserved.