Package org.xwiki.eventstream.query
Enum SortableEventQuery.SortClause.Order
- java.lang.Object
-
- java.lang.Enum<SortableEventQuery.SortClause.Order>
-
- org.xwiki.eventstream.query.SortableEventQuery.SortClause.Order
-
- All Implemented Interfaces:
Serializable
,Comparable<SortableEventQuery.SortClause.Order>
- Enclosing class:
- SortableEventQuery.SortClause
public static enum SortableEventQuery.SortClause.Order extends Enum<SortableEventQuery.SortClause.Order>
The order to apply.- Version:
- $Id: 4c8615d938488c5d35db82988ae75554b0bf2b08 $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SortableEventQuery.SortClause.Order
valueOf(String name)
Returns the enum constant of this type with the specified name.static SortableEventQuery.SortClause.Order[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DESC
public static final SortableEventQuery.SortClause.Order DESC
Sort in descending order.
-
ASC
public static final SortableEventQuery.SortClause.Order ASC
Sort in ascending order.
-
-
Method Detail
-
values
public static SortableEventQuery.SortClause.Order[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SortableEventQuery.SortClause.Order c : SortableEventQuery.SortClause.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SortableEventQuery.SortClause.Order valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-