commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "matthew.hawthorne" <>
Subject Re: [collections][lang] generic min/max functions
Date Tue, 25 May 2004 13:28:14 GMT
Emmanuel Bourg wrote:
> Hello, I was looking for a min/max function working with dates and 
> thought such a trivial feature would be already in [lang], but 
> surprisingly it isn't. I expected a min/max(Date, Date) function in 
> DateUtils, then I looked for a min/max(Comparable, Comparable) and I 
> eventually found the ComparatorUtils.min/max(Object, Object, Comparator) 
> functions in [collections]. Wouldn't it make sense to move or copy these 
> functions to [lang] ? Maybe just adding a ComparableUtils class to 
> [lang] would be enough, what do you think ? I can contribute a patch.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message