Is there a null-safe compare method?
I need to compare 2 strings:
- both null => equal
- one null => that one is smaller
- neither null => a.compareTo(b)

Else I 'd propose something like:
ObjectUtils.compare(Comparable a, Comparable b)

--
With kind regards,
Geoffrey De Smet


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

Reply via email to