Collections.sort(resultList,new Comparator<VcpeCompanyInfo>(){
public int compare(VcpeCompanyInfo o1, VcpeCompanyInfo o2) {
if(StringUtil.isEmpty(o1.getClrq())){
return 1;
}else if(StringUtil.isEmpty(o2.getClrq())){
return -1;
}else{
//倒序 0-
return 0-o1.getClrq().compareTo(o2.getClrq());
}
}
});
java列表中对象排序
最新推荐文章于 2025-08-20 15:04:37 发布