matthew.hawthorne wrote:

Can't you just use java.util.Collections min(Collection) and max(Collection)?

Yes it's an alternative, but at the cost of additional lines to create a collection.


Date date = ComparableUtils.min(date1, date2)

vs

Collection dates = new ArrayList();
dates.add(date1);
dates.add(date2);
Date date = Collections.min(dates);


Emmanuel Bourg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to