Enum Class ISortExpression.SortDirection

java.lang.Object
java.lang.Enum<ISortExpression.SortDirection>
com.mendix.systemwideinterfaces.connectionbus.requests.ISortExpression.SortDirection
All Implemented Interfaces:
Serializable, Comparable<ISortExpression.SortDirection>, Constable
Enclosing interface:
ISortExpression

public static enum ISortExpression.SortDirection extends Enum<ISortExpression.SortDirection>
Defines the available sort orders.
  • Enum Constant Details

  • Method Details

    • values

      public static ISortExpression.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 ISortExpression.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
    • parse

      public static ISortExpression.SortDirection parse(String direction)
      Parses a string to a SortDirection enumeration value. The strings 'asc' or 'ascending' will be parsed to ASC. The strings 'desc' or 'descending' will be parsed to DESC. The string will be parsed case-insensitive. If parsing fails, ASC is returned.
      Parameters:
      direction - the string to parse
      Returns:
      the sort direction