Skip to content

Commit

Permalink
Add missing javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Mar 19, 2016
1 parent 689ff03 commit d1d64d7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,19 @@ public PagedList(Page<E> page) {
*/
public abstract Page<E> nextPage(String nextPageLink) throws CloudException, IOException;

/**
* If there are more pages available.
*
* @return true if there are more pages to load. False otherwise.
*/
public boolean hasNextPage() {
return this.nextPageLink != null;
}

/**
* Loads a page from next page link.
* The exceptions are wrapped into Java Runtime exceptions.
*/
public void loadNextPage() {
try {
Page<E> nextPage = nextPage(this.nextPageLink);
Expand Down

0 comments on commit d1d64d7

Please sign in to comment.