I think you can achieve the same result with ComparatorUtils from
Commons Collections:
Comparator comp = ComparatorUtils.nullHighComparator(comparator);
comp.compare(o1, o2);
But a similar method in ObjectUtils would be useful.
Emmanuel Bourg
Julius Davies a écrit :
ObjectUtils.equals() is just what I'm looking for. Thanks!
Is there any interest in an ObjectUtils.compare() method? I would be
happy to create a JIRA ticket and upload a patch.
yours,
Julius
On Tue, May 27, 2008 at 3:05 PM, Stephen Colebourne
<[EMAIL PROTECTED]> wrote:
Julius Davies wrote:
NullSafe.equals(Object o1, Object o2)
NullSafe.compare(Object o1, Object o2)
NullSafe.compare(Object o1, Object o2, Comparator c)
I think these are on ObjectUtils already.
Stephen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]