Collections.sort(permissions, new Comparator() {
@Override
public int compare(Permission o1, Permission o2) {
return Integer.valueOf(o1.getId()) - Integer.valueOf(o2.getId());
}
});
list排序 手动排序
最新推荐文章于 2024-01-22 14:57:09 发布
Collections.sort(permissions, new Comparator() {
@Override
public int compare(Permission o1, Permission o2) {
return Integer.valueOf(o1.getId()) - Integer.valueOf(o2.getId());
}
});