Enum Class EmailQuery.SortOrder

java.lang.Object
java.lang.Enum<EmailQuery.SortOrder>
cloud.opencode.base.email.query.EmailQuery.SortOrder
All Implemented Interfaces:
Serializable, Comparable<EmailQuery.SortOrder>, Constable
Enclosing class:
EmailQuery

public static enum EmailQuery.SortOrder extends Enum<EmailQuery.SortOrder>
Sort order for email queries 邮件查询排序顺序
Since:
JDK 25, opencode-base-email V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • NEWEST_FIRST

      public static final EmailQuery.SortOrder NEWEST_FIRST
      Newest first (default) 最新优先(默认)
    • OLDEST_FIRST

      public static final EmailQuery.SortOrder OLDEST_FIRST
      Oldest first 最旧优先
    • SUBJECT_ASC

      public static final EmailQuery.SortOrder SUBJECT_ASC
      By subject (A-Z) 按主题(A-Z)
    • SUBJECT_DESC

      public static final EmailQuery.SortOrder SUBJECT_DESC
      By subject (Z-A) 按主题(Z-A)
    • SENDER_ASC

      public static final EmailQuery.SortOrder SENDER_ASC
      By sender (A-Z) 按发件人(A-Z)
    • SENDER_DESC

      public static final EmailQuery.SortOrder SENDER_DESC
      By sender (Z-A) 按发件人(Z-A)
  • Method Details

    • values

      public static EmailQuery.SortOrder[] 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

      public static EmailQuery.SortOrder valueOf(String name)
      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 name
      NullPointerException - if the argument is null