Package com.atlassian.jira.util
Class OrderByRequest<T>
java.lang.Object
com.atlassian.jira.util.OrderByRequest<T>
- Type Parameters:
T- type of the field that we can order by (StringorEnummake most sense here).
Represents an "order by" request. The request consists of a field to sort by
and an ordering direction (ascending or descending).
Note that this has nothing to do with JQL. This class is used in some service methods which provide ordering of their results.
- Since:
- 6.4.7
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T>>
OrderByRequest<T>asc(T field) static <T extends Enum<T>>
OrderByRequest<T>desc(T field) booleangetField()getOrder()inthashCode()toString()