Java使用lambda表达式将map对象转化为List并排序内的对象
Map<String, QuotaSort> map = new HashMap<String, QuotaSort>();
map.put("1", new QuotaSort("1", "11", 1));
map.put("4", new QuotaSort("4", "44", 4));
map.put("2", new QuotaSort("2", "22", 2));
map.put("3", new QuotaSort("3", "33", 3));
.
原创
2020-10-14 14:11:59 ·
3240 阅读 ·
0 评论