Enum Class SortDirection

java.lang.Object
java.lang.Enum<SortDirection>
com.oorian.data.SortDirection
All Implemented Interfaces:
Serializable, Comparable<SortDirection>, Constable

public enum SortDirection extends Enum<SortDirection>
Sort direction for data provider queries.
Since:
2.1
Version:
1.0
Author:
Marvin P. Warble Jr.
  • Enum Constant Details

    • ASC

      public static final SortDirection ASC
      Ascending order (A-Z, 0-9, oldest first).
    • DESC

      public static final SortDirection DESC
      Descending order (Z-A, 9-0, newest first).
  • Method Details

    • values

      public static SortDirection[] 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 SortDirection 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