Class SortUtils


  • public class SortUtils
    extends Object
    SortUtils use to sort the list based on the sort criteria this class support multiple field sorting
    • Constructor Detail

      • SortUtils

        public SortUtils()
    • Method Detail

      • sort

        public <T> List<T> sort​(List<T> list,
                                List<SearchSort> sortCriteria)
        Method to sort the list based on the sorting parameter support mutliple sort criteria
        Type Parameters:
        T - list generic type
        Parameters:
        list - input to be sorted
        sortCriteria - sorting criteria
        Returns:
        sorted list