Class AbstractSort
java.lang.Object
com.atlassian.confluence.search.v2.sort.AbstractSort
- All Implemented Interfaces:
Expandable<SearchSort>,SearchSort
- Direct Known Subclasses:
ContentIdSort,CreatedSort,FavouriteSort,FilenameSort,FilesizeSort,FullnameSort,ModifiedSort,RelevanceSort,TitleSort
Abstract superclass for simple sort types that just sort in a particular direction on some field.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.search.v2.SearchSort
SearchSort.Order, SearchSort.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSort(String key, SearchSort.Order order) Constructs a sort. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Gets the key that uniquely identifies this sort method.getOrder()Returns the order (whetherSearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.v2.SearchSort
expand
-
Constructor Details
-
AbstractSort
Constructs a sort.- Parameters:
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.
-
-
Method Details
-
getKey
Description copied from interface:SearchSortGets the key that uniquely identifies this sort method.- Specified by:
getKeyin interfaceSearchSort- Returns:
- the sort key
-
getOrder
Description copied from interface:SearchSortReturns the order (whetherSearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.- Specified by:
getOrderin interfaceSearchSort- Returns:
- the order (whether
SearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.
-
equals
-
hashCode
public int hashCode()
-