| Constructor and Description |
|---|
PageableList(java.util.List<RESULT> allResults,
int pageSize)
Creates a new
PageableList based on the List and the pageSize. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RESULT> |
getCurrentPage()
Get the first page
|
protected int |
getCurrentPageNo()
Returns current page number.
|
java.util.List<RESULT> |
getNextPage()
Get the next page - should be called iteratively to get the next page.
|
java.util.List<RESULT> |
getPage(int pageNo)
Returns the page by
|
int |
getPageSize()
Returns the page size
|
java.util.List<RESULT> |
getPreviousPage()
Get the previous page - should be called iteratively to get the previous page.
|
boolean |
hasNextPage()
Determines if there is a next page
|
boolean |
hasPreviousPage()
Determines if there is a previous page
|
public PageableList(java.util.List<RESULT> allResults, int pageSize)
PageableList based on the List and the pageSize.allResults - - List of alements that you want to page.pageSize - public java.util.List<RESULT> getCurrentPage()
PageablegetCurrentPage in interface Pageable<RESULT>RESULTpublic java.util.List<RESULT> getNextPage()
PageablegetNextPage in interface Pageable<RESULT>RESULT or empty list if Pageable.hasNextPage() returns false.public java.util.List<RESULT> getPreviousPage()
PageablegetPreviousPage in interface Pageable<RESULT>RESULT or empty list if Pageable.hasPreviousPage() returns false.public boolean hasNextPage()
PageablehasNextPage in interface Pageable<RESULT>public boolean hasPreviousPage()
PageablehasPreviousPage in interface Pageable<RESULT>public java.util.List<RESULT> getPage(int pageNo)
Pageablepublic int getPageSize()
PageablegetPageSize in interface Pageable<RESULT>protected int getCurrentPageNo()
Copyright © 2018 SAP SE. All Rights Reserved.