code: protected void setCurrentPage(Page<E> currentPage) {
          this.currentPage = currentPage;
          List<E> retrievedItems = currentPage.items();
          if (retrievedItems != null) {
              items.addAll(retrievedItems);
          }
          cachePage(currentPage.nextPageLink());
      }
docs: Sets the current page.
  
  @param currentPage the current page.