static Comparator combineComparators(final Comparator... l) { ret new Comparator { public int compare(A a, A b) { for (Comparator c : l) { int i = c.compare(a, b); if (i != 0) ret i; } ret 0; } }; }