List<AnalysisVo> collect = analysisVos.stream().sorted(Comparator.comparing(AnalysisVo::getLastMonitorTime).reversed()) .skip(startPage).limit(pageSize).collect(Collectors.toList());
stream排序分页
最新推荐文章于 2023-03-13 16:00:33 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
List<AnalysisVo> collect = analysisVos.stream().sorted(Comparator.comparing(AnalysisVo::getLastMonitorTime).reversed()) .skip(startPage).limit(pageSize).collect(Collectors.toList());