public final class Nulls
extends Object
Utility class for working with nulls.
-
Method Summary
static boolean
Included to skip the array creation in the varargs version
static boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
nonNull
public static boolean nonNull(Object object)
Included to skip the array creation in the varargs version
- Parameters:
object
- the object to check
- Returns:
- true if the object is non null
-
nonNull
public static boolean nonNull(Object... objects)
- Parameters:
objects
- the objects to check
- Returns:
- true if none of the given objects are null