Package com.vaadin.flow.data.provider
Class QuerySortOrderBuilder
java.lang.Object
com.vaadin.flow.data.provider.SortOrderBuilder<QuerySortOrder,String>
com.vaadin.flow.data.provider.QuerySortOrderBuilder
- All Implemented Interfaces:
Serializable
Helper classes with fluent API for constructing
QuerySortOrder
lists.
When the sort order is ready to be passed on, calling SortOrderBuilder.build()
will
create the list of sort orders.- Since:
- 1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected QuerySortOrder
createSortOrder
(String by, SortDirection direction) Creates a sort order object with the given parameters.Appends sorting with ascending sort direction.Appends sorting with descending sort direction.Methods inherited from class com.vaadin.flow.data.provider.SortOrderBuilder
build
-
Constructor Details
-
QuerySortOrderBuilder
public QuerySortOrderBuilder()
-
-
Method Details
-
thenAsc
Description copied from class:SortOrderBuilder
Appends sorting with ascending sort direction.- Overrides:
thenAsc
in classSortOrderBuilder<QuerySortOrder,
String> - Parameters:
by
- the object to sort by- Returns:
- this sort builder
-
thenDesc
Description copied from class:SortOrderBuilder
Appends sorting with descending sort direction.- Overrides:
thenDesc
in classSortOrderBuilder<QuerySortOrder,
String> - Parameters:
by
- the object to sort by- Returns:
- this sort builder
-
createSortOrder
Description copied from class:SortOrderBuilder
Creates a sort order object with the given parameters.- Specified by:
createSortOrder
in classSortOrderBuilder<QuerySortOrder,
String> - Parameters:
by
- the object to sort bydirection
- the sort direction- Returns:
- the sort order object
-