Class SearchSort
java.lang.Object
com.atlassian.query.order.SearchSort
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionSearchSort(SearchSort copy) SearchSort(String field) SearchSort(String field, SortOrder order) Used to construct a search sort for a field with a direction.SearchSort(String field, io.atlassian.fugue.Option<Property> property, SortOrder order) Used to construct a search sort for a field with a direction and optional propertySearchSort(String order, String field) Deprecated. -
Method Summary
-
Constructor Details
-
SearchSort
-
SearchSort
-
SearchSort
Used to construct a search sort for a field with a direction and optional property- Parameters:
field- to sort by.property- property associated with sort filed this should be taken into consideration when constructing sort fieldorder- direction to sort by, if null the default order for the field will be used.
-
SearchSort
Deprecated.useSearchSort(String, SortOrder)instead.Used to construct a search sort for a field with a direction.NOTE: it would be better if the order of these parameters was reversed but we are leaving it for backward compatibility.
- Parameters:
order- the order of the sort, if null, will be the default order for the system, if not one ofSortOrder.ASCorSortOrder.DESCit will default toSortOrder.ASC.field- to sort by.
-
SearchSort
-
-
Method Details
-
getOrder
-
getSortOrder
-
getField
-
getProperty
-
isReverse
public boolean isReverse() -
toString
-
equals
-
hashCode
-
SearchSort(String, SortOrder)instead.