Package stroom.query.api.v2
Enum Sort.SortDirection
- java.lang.Object
-
- java.lang.Enum<Sort.SortDirection>
-
- stroom.query.api.v2.Sort.SortDirection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Sort.SortDirection>
,java.lang.constant.Constable
,HasDisplayValue
- Enclosing class:
- Sort
public static enum Sort.SortDirection extends java.lang.Enum<Sort.SortDirection> implements HasDisplayValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCENDING
DESCENDING
-
Method Summary
Modifier and Type Method Description java.lang.String
getDisplayValue()
static Sort.SortDirection
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Sort.SortDirection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASCENDING
public static final Sort.SortDirection ASCENDING
-
DESCENDING
public static final Sort.SortDirection DESCENDING
-
-
Method Detail
-
values
public static Sort.SortDirection[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sort.SortDirection valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDisplayValue
public java.lang.String getDisplayValue()
- Specified by:
getDisplayValue
in interfaceHasDisplayValue
- Returns:
- The string label/description of this object.
-
-