com.vaadin.data.provider.

Class Sort.SortBuilder

    • Constructor Detail

      • SortBuilder

        protected SortBuilder()

        Constructs an empty SortBuilder.

    • Method Detail

      • thenAsc

        public Sort.SortBuilder thenAsc​(String by)

        Appends sorting with ascending sort direction.

        Parameters:

        by - the object to sort by

        Returns:

        this sort builder

      • thenDesc

        public Sort.SortBuilder thenDesc​(String by)

        Appends sorting with descending sort direction.

        Parameters:

        by - the object to sort by

        Returns:

        this sort builder

      • append

        protected Sort.SortBuilder append​(String by,
                                          SortDirection direction)

        Appends sorting with given sort direction.

        Parameters:

        by - the object to sort by

        direction - the sort direction

        Returns:

        this sort builder

      • build

        public List<QuerySortOrder> build()

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

        Returns:

        the unmodifiable sort order list