map 按key排序

来源:互联网 发布:java小游戏超级玛丽 编辑:程序博客网 时间:2024/06/05 08:43
Map<Integer, CustomerConfigTreeVo> dataMap = new TreeMap<>(        new Comparator<Integer>() {            @Override            public int compare(Integer o1, Integer o2) {                return o1.compareTo(o2);            }        });
0 0
原创粉丝点击