标签:android
public static <T extends Comparable<T>> boolean compare(List<T> a, List<T> b) { if(a.size() != b.size()) return false; Collections.sort(a); Collections.sort(b); for(int i=0;i<a.size();i++){ if(!a.get(i).equals(b.get(i))) return false; } return true; }
标签:android
原文地址:http://blog.csdn.net/anjon520/article/details/38024553