@Internal public abstract class AbstractSort extends Object implements SearchSort
SearchSort.Order, SearchSort.Type| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSort(String key,
SearchSort.Order order)
Constructs a sort.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getKey()
Gets the key that uniquely identifies this sort method.
|
SearchSort.Order |
getOrder()
Returns the order (whether
SearchSort.Order.ASCENDING or SearchSort.Order.DESCENDING) of the sort. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitexpandprotected AbstractSort(String key, SearchSort.Order order)
key - a unique key to identify this sortorder - (required) the order of the sort (SearchSort.Order). Implementations should define what ascending and
descending means in regards to their custom sort type.public String getKey()
SearchSortgetKey in interface SearchSortpublic SearchSort.Order getOrder()
SearchSortSearchSort.Order.ASCENDING or SearchSort.Order.DESCENDING) of the sort.getOrder in interface SearchSortSearchSort.Order.ASCENDING or SearchSort.Order.DESCENDING) of the sort.Copyright © 2003–2022 Atlassian. All rights reserved.