Package com.vaadin.flow.component.grid
Interface SortOrderProvider
-
- All Superinterfaces:
Function<SortDirection,Stream<QuerySortOrder>>
,Serializable
,SerializableFunction<SortDirection,Stream<QuerySortOrder>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SortOrderProvider extends SerializableFunction<SortDirection,Stream<QuerySortOrder>>
Generates the sort orders when rows are sorted by a column.- Author:
- Vaadin Ltd
- See Also:
Grid.Column.setSortOrderProvider(com.vaadin.flow.component.grid.SortOrderProvider)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<QuerySortOrder>
apply(SortDirection sortDirection)
Generates the sort orders when rows are sorted by a column.
-
-
-
Method Detail
-
apply
Stream<QuerySortOrder> apply(SortDirection sortDirection)
Generates the sort orders when rows are sorted by a column.- Specified by:
apply
in interfaceFunction<SortDirection,Stream<QuerySortOrder>>
- Parameters:
sortDirection
- desired sort direction- Returns:
- sort information
-
-