public class NullUtils extends Object
Constructor and Description |
---|
NullUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsNull(Collection<Object> args)
Checks whether the collection contains a null value.
|
static boolean |
equalsOrBothNull(Object obj1,
Object obj2)
Deprecated.
use Java7 method java.util.Objects.equals
|
@Deprecated public static boolean equalsOrBothNull(Object obj1, Object obj2)
obj1
- first objectobj2
- second objectpublic static boolean containsNull(Collection<Object> args)
args
- a collection; can't be nullCopyright © 2010–2015. All rights reserved.