Class SearchUtils


  • public final class SearchUtils
    extends java.lang.Object
    Utility class for helper methods related to search
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PageableData createPageableData​(int currentPage, int pageSize, java.lang.String sort)
      Creates a pageable data based on the given parameters
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createPageableData

        public static PageableData createPageableData​(int currentPage,
                                                      int pageSize,
                                                      java.lang.String sort)
        Creates a pageable data based on the given parameters
        Parameters:
        currentPage - is the current page which is returned
        pageSize - is the page size
        sort - is the sorting method
        Returns:
        pageable data