Interface SearchSort
-
- All Superinterfaces:
Expandable<SearchSort>
- All Known Implementing Classes:
AbstractSort,ContentIdSort,CreatedSort,FavouriteSort,FieldSort,FilenameSort,FilesizeSort,FullnameSort,LowercaseFieldSort,ModifiedSort,MultiSearchSort,RelevanceSort,TitleSort,UserAttributeSort
public interface SearchSort extends Expandable<SearchSort>
Represents some method for sorting search results, and the order in which to search them. Implementations should be immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSearchSort.OrderEnum defining the types of ordering supported.static classSearchSort.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SearchSortexpand()Expand this query/filter into a composite query/filter (that composes others).StringgetKey()Gets the key that uniquely identifies this sort method.SearchSort.OrdergetOrder()Returns the order (whetherSearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.
-
-
-
Method Detail
-
getKey
String getKey()
Gets the key that uniquely identifies this sort method.- Returns:
- the sort key
-
getOrder
SearchSort.Order getOrder()
Returns the order (whetherSearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.- Returns:
- the order (whether
SearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.
-
expand
default SearchSort expand()
Description copied from interface:ExpandableExpand this query/filter into a composite query/filter (that composes others).- Specified by:
expandin interfaceExpandable<SearchSort>- Returns:
- a query/filter
-
-