java.lang.Object
is.codion.common.utilities.Nulls
Utility class for working with nulls.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if the given object is non-null.static booleanReturns true if none of the given objects are null, false if the array itself is null, and true if no objects are provided.
-
Method Details
-
nonNull
Returns true if the given object is non-null. 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
Returns true if none of the given objects are null, false if the array itself is null, and true if no objects are provided.- Parameters:
objects- the objects to check- Returns:
- true if none of the given objects are null, false if the array itself is null, true if no objects are provided
-