This implies that having arrays with some null elements is
a) somewhat common
2) a good idea
I'd say both are not true.
I'm not sure the library should promote that the above is the case.
On 07/04/2013 02:43 PM, Rafael Santini 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-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org