You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.data.provider.

Class SortOrderBuilder<T extends SortOrder<V>,​V>

    • Constructor Detail

      • SortOrderBuilder

        public SortOrderBuilder()
    • Method Detail

      • thenAsc

        public SortOrderBuilder<T,​V> thenAsc​(V by)

        Appends sorting with ascending sort direction.

        Parameters:

        by - the object to sort by

        Returns:

        this sort builder

      • thenDesc

        public SortOrderBuilder<T,​V> thenDesc​(V by)

        Appends sorting with descending sort direction.

        Parameters:

        by - the object to sort by

        Returns:

        this sort builder

      • build

        public final List<T> build()

        Returns an unmodifiable copy of the list of current sort orders in this sort builder.

        Returns:

        an unmodifiable sort order list

      • createSortOrder

        protected abstract T createSortOrder​(V by,
                                             SortDirection direction)

        Creates a sort order object with the given parameters.

        Parameters:

        by - the object to sort by

        direction - the sort direction

        Returns:

        the sort order object