public class SearchSort extends Object implements Serializable
Together via the OrderBy these will determine the sorting order of the results
returned by a Query.
| Constructor and Description |
|---|
SearchSort(SearchSort copy) |
SearchSort(String field) |
SearchSort(String field,
com.atlassian.fugue.Option<Property> property,
SortOrder order)
Used to construct a search sort for a field with a direction and optional property
|
SearchSort(String field,
SortOrder order)
Used to construct a search sort for a field with a direction.
|
SearchSort(String order,
String field)
Deprecated.
use
SearchSort(String, SortOrder) instead. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getField() |
String |
getOrder() |
com.atlassian.fugue.Option<Property> |
getProperty() |
SortOrder |
getSortOrder() |
int |
hashCode() |
boolean |
isReverse() |
String |
toString() |
public SearchSort(String field)
public SearchSort(String field, SortOrder order)
field - to sort by.order - direction to sort by, if null the default order for the field will be used.public SearchSort(String field, com.atlassian.fugue.Option<Property> property, SortOrder order)
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.public SearchSort(String order, String field)
SearchSort(String, SortOrder) instead.NOTE: it would be better if the order of these parameters was reversed but we are leaving it for backward compatibility.
order - the order of the sort, if null, will be the default order for the system, if not one of
SortOrder.ASC or SortOrder.DESC it will
default to SortOrder.ASC.field - to sort by.public SearchSort(SearchSort copy)
Copyright © 2002-2017 Atlassian. All Rights Reserved.