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
Defines the available sort orders.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionParses a string to a SortDirection enumeration value.Returns the enum constant of this class with the specified name.static ISortExpression.SortDirection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASC
Sorts ascending. -
DESC
Sorts descending.
-
-
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
-
parse
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
-