Map<Integer, CustomerConfigTreeVo> dataMap = new TreeMap<>( new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { return o1.compareTo(o2); } } );
map 按key排序
最新推荐文章于 2024-09-27 16:24:17 发布
Map<Integer, CustomerConfigTreeVo> dataMap = new TreeMap<>( new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { return o1.compareTo(o2); } } );