摘要: public class A{ private B b; } public class B{ private int id; } //对于List<A> 按照B对象的id进行排序: list.stream().sorted(Comparator.comparing(x-> x.getB().getI 阅读全文
posted @ 2020-06-18 11:10 伯爵~ 阅读(8916) 评论(0) 推荐(0) 编辑