public enum MailSortField extends java.lang.Enum<MailSortField>
MailSortField
- An enumeration of sortable mail list fields.Enum Constant and Description |
---|
ACCOUNT_NAME
Account name
|
CC
Cc
|
COLOR_LABEL
Color Label
|
FLAG_SEEN
Flag \SEEN
|
FROM
From
|
RECEIVED_DATE
Received date
|
SENT_DATE
Sent date
|
SIZE
Size
|
SUBJECT
Subject
|
TO
To
|
Modifier and Type | Method and Description |
---|---|
int |
getField() |
static MailSortField |
getField(int field)
Determines the corresponding
MailSortField constant to given int value |
static MailSortField[] |
getFields(int[] fields)
Creates an array of
MailSortField corresponding to given int values |
java.lang.String |
getKey() |
MailListField |
getListField() |
static MailSortField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MailSortField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailSortField FROM
public static final MailSortField TO
public static final MailSortField CC
public static final MailSortField SUBJECT
public static final MailSortField SIZE
public static final MailSortField SENT_DATE
public static final MailSortField RECEIVED_DATE
public static final MailSortField COLOR_LABEL
public static final MailSortField FLAG_SEEN
public static final MailSortField ACCOUNT_NAME
public static MailSortField[] values()
for (MailSortField c : MailSortField.values()) System.out.println(c);
public static MailSortField valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getField()
int
field valuepublic java.lang.String getKey()
public MailListField getListField()
public static final MailSortField[] getFields(int[] fields)
MailSortField
corresponding to given int
valuesfields
- The int
valuesMailSortField
corresponding to given int
valuespublic static final MailSortField getField(int field)
MailSortField
constant to given int
valuefield
- The int
valueMailSortField
constant