public final class DataPaginator extends Object
| Modifier and Type | Method and Description |
|---|---|
static <C> List<C> |
doPaging(int pageNumber,
List<C> sourceList,
Pageable pageable)
A reusable generic method for doing item paging
|
public static <C> List<C> doPaging(int pageNumber, List<C> sourceList, Pageable pageable)
pageNumber - The page required. Page number starts with 0.sourceList - The original list of itemspageable - The type of Pageable itemCopyright © 2019 WSO2 Inc. All Rights Reserved.