Enum Class EmailQuery.SortOrder
- All Implemented Interfaces:
Serializable, Comparable<EmailQuery.SortOrder>, Constable
- Enclosing class:
EmailQuery
Sort order for email queries
邮件查询排序顺序
- Since:
- JDK 25, opencode-base-email V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNewest first (default) 最新优先(默认)Oldest first 最旧优先By sender (A-Z) 按发件人(A-Z)By sender (Z-A) 按发件人(Z-A)By subject (A-Z) 按主题(A-Z)By subject (Z-A) 按主题(Z-A) -
Method Summary
Modifier and TypeMethodDescriptionstatic EmailQuery.SortOrderReturns the enum constant of this class with the specified name.static EmailQuery.SortOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEWEST_FIRST
Newest first (default) 最新优先(默认) -
OLDEST_FIRST
Oldest first 最旧优先 -
SUBJECT_ASC
By subject (A-Z) 按主题(A-Z) -
SUBJECT_DESC
By subject (Z-A) 按主题(Z-A) -
SENDER_ASC
By sender (A-Z) 按发件人(A-Z) -
SENDER_DESC
By sender (Z-A) 按发件人(Z-A)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-