随笔分类 -  JAVA

 
List排序的工具类
摘要:这个比较好用,通用的工具类。 1 public class SortList<E>{ 2 public void sort(List<E> list, final String method, final String sort){ 3 Collections.sort(list, new Comparator() { 4 public int compare(Object a, Object b) { 5 int ret = 0; 6 ... 阅读全文
posted @ 2011-11-08 17:04 Tony_Shen 阅读(509) 评论(0) 推荐(0)