Package com.vaadin.ui.components.grid
Interface SortOrderProvider
-
- All Superinterfaces:
java.util.function.Function<com.vaadin.shared.data.sort.SortDirection,java.util.stream.Stream<QuerySortOrder>>,java.io.Serializable,SerializableFunction<com.vaadin.shared.data.sort.SortDirection,java.util.stream.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<com.vaadin.shared.data.sort.SortDirection,java.util.stream.Stream<QuerySortOrder>>
Generates the sort orders when rows are sorted by a column.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
Grid.Column.setSortOrderProvider(com.vaadin.ui.components.grid.SortOrderProvider)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.stream.Stream<QuerySortOrder>apply(com.vaadin.shared.data.sort.SortDirection sortDirection)Generates the sort orders when rows are sorted by a column.
-
-
-
Method Detail
-
apply
java.util.stream.Stream<QuerySortOrder> apply(com.vaadin.shared.data.sort.SortDirection sortDirection)
Generates the sort orders when rows are sorted by a column.- Specified by:
applyin interfacejava.util.function.Function<com.vaadin.shared.data.sort.SortDirection,java.util.stream.Stream<QuerySortOrder>>- Parameters:
sortDirection- desired sort direction- Returns:
- sort information
-
-