https://www.cnblogs.com/kuanglongblogs/p/11230250.html
list.stream().sorted(Comparator.comparing(类::属性一).thenComparing(类::属性二));
https://www.cnblogs.com/kuanglongblogs/p/11230250.html
list.stream().sorted(Comparator.comparing(类::属性一).thenComparing(类::属性二));
本文标题:2020-07-22-java8 stream 多字段排序
本文链接:https://www.haomeiwen.com/subject/mjktlktx.html
网友评论