Class PageRequestImpl

    • Constructor Detail

      • PageRequestImpl

        public PageRequestImpl()
      • PageRequestImpl

        public PageRequestImpl​(int pageNumber,
                               int pageSize)
        Creates a new PageRequest. Pages are zero indexed, thus providing 0 for page will return the first page.
        Parameters:
        pageNumber - zero-based page index.
        pageSize - the size of the page to be returned.
      • PageRequestImpl

        public PageRequestImpl​(int pageNumber,
                               int pageSize,
                               Direction direction,
                               String... properties)
        Creates a new PageRequest with sort parameters applied.
        Parameters:
        pageNumber - zero-based page index.
        pageSize - the size of the page to be returned.
        direction - the direction of the SortingImpl to be specified, can be null.
        properties - the properties to sort by, must not be null or empty.
      • PageRequestImpl

        public PageRequestImpl​(int pageNumber,
                               int pageSize,
                               Sorting sort)
      • PageRequestImpl

        public PageRequestImpl​(int pageNumber,
                               int pageSize,
                               Sorting sort,
                               Filtering filtering)
        Creates a new PageRequest with sort parameters applied.
        Parameters:
        pageNumber - zero-based page index, must not be less than zero.
        pageSize - the size of the page to be returned, must not be less than one.
        sort - can be null
        filtering - contains list of filter criterias