摘要: //companys 是一个List对象集合Collections.sort(companys, new Comparator() { public int compare(Object a, Object b) { Long one = ((UserCompany) a).getCompany().getComid(); Long two = ((UserCompany) b).getCompany().getComid(); return (int) (one - two); } }); 阅读全文
posted @ 2013-03-14 16:18 宁静致远_ 阅读(3192) 评论(0) 推荐(0) 编辑