Here you can find the source of assertNotNull(final Object... objects)
Parameter | Description |
---|---|
objects | - The list of objects to check. |
true
if none of the objects is null
, false
otherwise.
public static boolean assertNotNull(final Object... objects)
//package com.java2s; //License from project: Open Source License public class Main { /**/*ww w. j av a2 s .c o m*/ * @param objects - The list of objects to check. * @return <code>true</code> if none of the objects is <code>null</code>, * <code>false</code> otherwise. */ public static boolean assertNotNull(final Object... objects) { for (Object obj : objects) { if (obj == null) { return false; } } return true; } }