Here you can find the source of anyNull(Object... args)
public static boolean anyNull(Object... args)
//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; } }