|
From: Oliver H. <Ol...@ou...> - 2005-07-22 09:22:13
|
> You would hardly ever use ComparableComparator directly for=20 > sorting or the like. You would rather simply rely on=20 > "natural" sort order, i.e. Comparable directly. E.g.=20 > "Collections.sort(List, Comparator)" vs "Collections.sort(List)". True. But most of the code (in SpringRich) that I'm dealing with does not take the "natural" sort order into consideration i.e. you must always supply a Comparator. So for me I keep looking to ComparableComparator for this "natural" case and naturally I also want everything to be null safe but this is a secondary consideration. Regardless, I'm happy to use the NullSafeComparator singletons.=20 Thanks, Ollie |