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:
public class QuerySortOrderBuilder extends SortOrderBuilder<QuerySortOrder,String>
Helper classes with fluent API for constructing
QuerySortOrder
lists. When the sort order is ready to be passed on, callingSortOrderBuilder.build()
will create the list of sort orders.
-
-
Constructor Summary
Constructors Constructor and Description QuerySortOrderBuilder()
-
Method Summary
All Methods Modifier and Type Method and Description protected QuerySortOrder
createSortOrder(String by, SortDirection direction)
Creates a sort order object with the given parameters.
QuerySortOrderBuilder
thenAsc(String by)
Appends sorting with ascending sort direction.
QuerySortOrderBuilder
thenDesc(String by)
Appends sorting with descending sort direction.
-
Methods inherited from class com.vaadin.flow.data.provider.SortOrderBuilder
build
-
-
-
-
Method Detail
-
thenAsc
public QuerySortOrderBuilder thenAsc(String by)
Description copied from class:
SortOrderBuilder
Appends sorting with ascending sort direction.
Overrides:
thenAsc
in classSortOrderBuilder<QuerySortOrder,String>
Parameters:
by
- the object to sort byReturns:
this sort builder
-
thenDesc
public QuerySortOrderBuilder thenDesc(String by)
Description copied from class:
SortOrderBuilder
Appends sorting with descending sort direction.
Overrides:
thenDesc
in classSortOrderBuilder<QuerySortOrder,String>
Parameters:
by
- the object to sort byReturns:
this sort builder
-
createSortOrder
protected QuerySortOrder createSortOrder(String by, SortDirection direction)
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 directionReturns:
the sort order object
-
-