摘要: //返回 对象集合以类属性一升序排序list.stream().sorted(Comparator.comparing(类::属性一)); //返回 对象集合以类属性一降序排序 注意两种写法list.stream().sorted(Comparator.comparing(类::属性一).rever 阅读全文
posted @ 2022-08-26 15:59 xzlnuli 阅读(192) 评论(0) 推荐(0) 编辑