title: Spring Data PagedListHolder is not returning correct PageSize when size input is set greater than 15 for List Pagination,why?
body: <p>I am trying to achieve pagination for List data with <code>PagedListHolder</code> from Spring but when set input size greater than 15 ,its now returning expected output.</p>
  <pre class="lang-java prettyprint-override"><code>private List&lt;WorklistResponse&gt; getPaginatedResponseResult(List&lt;WorklistResponse&gt; worklistResponse, FilterRequest filterRequest) {
      PagedListHolder&lt;WorklistResponse&gt; pagedListHolder = new PagedListHolder&lt;WorklistResponse&gt;();
  
      pagedListHolder.setSource(worklistResponse);
      pagedListHolder.setPage(filterRequest.getCurrentPage());// 1
      pagedListHolder.setPageSize(filterRequest.getPageSize());// 29
  
      System.out.println(worklistResponse.size());//total input list size 30
      System.out.println(pagedListHolder.getPageSize());  // after setting size 29
      System.out.println(pagedListHolder.getPageList().size());// actual page element size result is 1 which is not correct ,it should be 29
  
      return pagedListHolder.getPageList();
  }
  </code></pre>
  <p>In class <code>PagedListHolder</code>, below methods is impacting on result:</p>
  <pre class="lang-java prettyprint-override"><code>public List&lt;E&gt; getPageList() {
      return this.getSource().subList(this.getFirstElementOnPage(), this.getLastElementOnPage() + 1);
  }
  </code></pre>
  <p>How I can get correct page size for any input?</p>