commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan Jones <dun...@wortharead.com>
Subject Re: Lang: ObjectUtils
Date Fri, 05 Jul 2013 09:07:13 GMT
On 4 July 2013 19:43, Rafael Santini <rafael@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?

To directly answer your question, patches should be submitted as an
enhancement request on the issue tracking system
(http://commons.apache.org/proper/commons-lang/issue-tracking.html).
Please include thorough unit tests in your patch.

Duncan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message