commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <>
Subject Re: Lang: ObjectUtils
Date Mon, 08 Jul 2013 13:22:41 GMT
Hi Hen,

Henri Yandell wrote:

> I don't see any value having the first two methods - replacing the '=='
> sign is a bit too far in the 'provide simple methods' direction I think :)
> I think the third method is already in Lang as:
>     ArrayUtils.contains(array, null);

Well, no, this is not, what the method does! With Lang we could use now:

    ObjectUtils.firstNotNull(array) != null

> Having a containsNull is semantically nice, but I'm not sure it's needed.

The question is here more, why the method is part of ObjectUtils, since it 
operates on an Array and I did not find it immediately (and I am probably 
not alone).


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

View raw message