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); Having a containsNull is semantically nice, but I'm not sure it's needed. Hen On Thu, Jul 4, 2013 at 11:43 AM, Rafael Santini <raf...@santini.eti.br>wrote: > Hi, > > I would like to propose a method in ObjectUtils class that receives an > array of objects and returns true if all objects are not null. I have > implemented the following: > > public static boolean isNull(Object object) { > return object == null; > } > > public static boolean isNotNull(Object object) { > return isNull(object) == false; > } > > public static boolean isNotNull(Object... objects) { > for (Object object : objects) { > if (isNull(object)) { > return false; > } > } > return true; > } > > Can I submit a patch for this feature? > > Thanks, > > Rafael Santini > > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > dev-unsubscribe@commons.**apache.org<dev-unsubscr...@commons.apache.org> > For additional commands, e-mail: dev-h...@commons.apache.org > >