Does any one know of some kind of Comparator factory in Java, with a
public Comparator getComparatorForClass(Class clazz) {}
It would return Comparators for stuff like String, Double, Integer but would have a
public void addComparatorForClass(Class clazz, Comparator comparator) {}
For arbitrary types.