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