标签:tor get ide 时间 数据 pareto res null public
所有数据存进resultList中
Collections.sort(resultList, new Comparator<HashMap<String, Object>>() {
@Override
public int compare(HashMap<String, Object> o1, HashMap<String, Object> o2) {
Date time1 = (Date) o1.get("submitTime");
Date time2 = (Date) o2.get("submitTime");
if (null == time1) {
return 1;
}
if (null == time2) {
return -1;
}
return time2.compareTo(time1); //按时间正序 倒叙是 time1.compareTo(time2);
}
});
标签:tor get ide 时间 数据 pareto res null public
原文地址:http://www.cnblogs.com/xdcr/p/7651672.html