Package org.wso2.carbon.utils
Class DataPaginator
java.lang.Object
org.wso2.carbon.utils.DataPaginator
Utility class for handling data pagination
-
Method Summary
-
Method Details
-
doPaging
A reusable generic method for doing item paging- Parameters:
pageNumber- The page required. Page number starts with 0.sourceList- The original list of itemspageable- The type of Pageable item- Returns:
- Returned page
-