Interface SortOrderProvider

All Superinterfaces:
Function<com.vaadin.flow.data.provider.SortDirection,Stream<com.vaadin.flow.data.provider.QuerySortOrder>>, Serializable, com.vaadin.flow.function.SerializableFunction<com.vaadin.flow.data.provider.SortDirection,Stream<com.vaadin.flow.data.provider.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 com.vaadin.flow.function.SerializableFunction<com.vaadin.flow.data.provider.SortDirection,Stream<com.vaadin.flow.data.provider.QuerySortOrder>>
Generates the sort orders when rows are sorted by a column.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<com.vaadin.flow.data.provider.QuerySortOrder>
    apply(com.vaadin.flow.data.provider.SortDirection sortDirection)
    Generates the sort orders when rows are sorted by a column.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      Stream<com.vaadin.flow.data.provider.QuerySortOrder> apply(com.vaadin.flow.data.provider.SortDirection sortDirection)
      Generates the sort orders when rows are sorted by a column.
      Specified by:
      apply in interface Function<com.vaadin.flow.data.provider.SortDirection,Stream<com.vaadin.flow.data.provider.QuerySortOrder>>
      Parameters:
      sortDirection - desired sort direction
      Returns:
      sort information