public final class DataPaginator extends Object
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 © 2015 WSO2 Inc. All rights reserved.