Java Array Value Any anyNull(Object... objects)

Here you can find the source of anyNull(Object... objects)

Description

any Null

License

Open Source License

Declaration

public static boolean anyNull(Object... objects) 

Method Source Code

//package com.java2s;
/**/*from w w  w . jav a  2  s. c o m*/
 * =============================================================================
 *
 * ORCID (R) Open Source
 * http://orcid.org
 *
 * Copyright (c) 2012-2013 ORCID, Inc.
 * Licensed under an MIT-Style License (MIT)
 * http://orcid.org/open-source-license
 *
 * This copyright and license information (including a link to the full license)
 * shall be included in its entirety in all copies or substantial portion of
 * the software.
 *
 * =============================================================================
 */

public class Main {
    public static boolean anyNull(Object... objects) {
        for (Object object : objects) {
            if (object == null) {
                return true;
            }
        }
        return false;
    }
}

Related

  1. anyNoneNull(String... arrays)
  2. anyNotNull(final Object... values)
  3. anyNotNull(Object... tests)
  4. anyNull(Object... args)
  5. anyNull(Object... args)
  6. anyNull(Object... objs)
  7. anyNulls(Object... items)
  8. anyToDoubleOrElse(Object any, double orElse)
  9. anyToString(Object o, boolean noneNull)