[ 
http://issues.apache.org/jira/browse/LANG-291?page=comments#action_12449906 ] 
            
Henri Yandell commented on LANG-291:
------------------------------------

Quite likely - the 2.3 Enum issues haven't played out as I thought they would - 
very little change to Lang; so I'm just chugging along and adding things that 
won't break backwards compat.

I figured I shouldn't be releasing 2.3 too soon, so BeanUtils, DbUtils and 
Discovery have been jumping ahead in my queue. I'll go ahead and look at 
applying this if no one else does soon.

> Null-safe comparison methods for finding most recent / least recent dates.
> --------------------------------------------------------------------------
>
>                 Key: LANG-291
>                 URL: http://issues.apache.org/jira/browse/LANG-291
>             Project: Commons Lang
>          Issue Type: Improvement
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>             Fix For: 3.0
>
>         Attachments: DateUtils-patch-rev468924.txt, 
> ObjectUtils-patch-rev470351.txt
>
>
> /**
>      * <p>
>      * Null-safe date comparison.
>      * Returnes the most recent date if date1 and date2 is non-null. 
>      * If one of the dates are null, the non-null will be returned.
>      * If both are null, null will be returned.
>      * </p>
>      * @param date1
>      * @param date2
>      * @return
>      */
>     public static Date mostRecent( Date date1, Date date2 )
>  /**
>      * <p>
>      * Null-safe date comparison.
>      * Returnes the least recent (oldest) date if date1 and date2 is 
> non-null. 
>      * If one of the dates are null, the non-null will be returned.
>      * If both are null, null will be returned.
>      * </p>
>      * @param date1
>      * @param date2
>      * @return
>      */
>     public static Date leastRecent( Date date1, Date date2 )

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to