Issue-ID: USECASEUI-368
Change-Id: Icdd6101748ed99fd3d33f1a566ff49d58e1b9c5a
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
if (list == null || pageNo < 1 || (pageNo - 1) * pageSize > list.size()) {
return new PagedResult(0, Collections.EMPTY_LIST);
}
- list = list.stream().skip((pageNo - 1) * pageSize).limit(pageSize).collect(Collectors.toList());
+ list = list.stream().skip((pageNo - 1) * (long)pageSize).limit(pageSize).collect(Collectors.toList());
return new PagedResult(list.size(), list );
}
}