📌  相关文章
📜  删除 Page<> 元素 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:43.940000             🧑  作者: Mango

代码示例1
Page applications = appRepo.findAll(predicate, page).
                    map(item -> projectionFactory.createProjection(ApplicationProjection.class, item));

List appList = applications.getContent();
// logic to remove the elements as per your condition modifiedAppList
// create a new Page with the modified list and size
Page newApplicationsPage = new PageImpl<>(modifiedAppList, PageRequest.of(pageNo, pageSize),modifiedAppList.size());