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

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

Description

any Null

License

Open Source License

Declaration

public static boolean anyNull(Object... args) 

Method Source Code

//package com.java2s;
/**/*from   ww w . ja v  a 2s.c  o  m*/
 * <copyright>
 * Copyright (c) 2010-2012 Henshin developers. All rights reserved. 
 * This program and the accompanying materials are made available 
 * under the terms of the Eclipse Public License v1.0 which 
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * </copyright>
 */

public class Main {
    public static boolean anyNull(Object... args) {
        return !noneNull(args);
    }

    public static boolean noneNull(Object... args) {
        for (Object arg : args)
            if (arg == null)
                return false;
        return true;
    }
}

Related

  1. anyIsTrue(Boolean... conditions)
  2. anyMore(int[] target, int[] test)
  3. anyNoneNull(String... arrays)
  4. anyNotNull(final Object... values)
  5. anyNotNull(Object... tests)
  6. anyNull(Object... args)
  7. anyNull(Object... objects)
  8. anyNull(Object... objs)
  9. anyNulls(Object... items)