Skip to content

Commit

Permalink
Adapt group paged list to new paged list
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Sep 13, 2016
1 parent bc575ae commit 12cd83e
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,20 @@ public Page<E> currentPage() {
return currentPage;
}

/**
* Sets the current page.
*
* @param currentPage the current page.
*/
protected void setCurrentPage(Page<E> currentPage) {
this.currentPage = currentPage;
List<E> retrievedItems = currentPage.getItems();
if (retrievedItems != null) {
items.addAll(retrievedItems);
}
cachePage(currentPage.getNextPageLink());
}

/**
* The implementation of {@link ListIterator} for PagedList.
*/
Expand Down

0 comments on commit 12cd83e

Please sign in to comment.