@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, wait
expand
protected 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()
SearchSort
getKey
in interface SearchSort
public SearchSort.Order getOrder()
SearchSort
SearchSort.Order.ASCENDING
or SearchSort.Order.DESCENDING
) of the sort.getOrder
in interface SearchSort
SearchSort.Order.ASCENDING
or SearchSort.Order.DESCENDING
) of the sort.Copyright © 2003–2020 Atlassian. All rights reserved.