public abstract class Check extends Object
| Constructor and Description |
|---|
Check() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allNull(Object... objects)
Check if the all given objects are null.
|
static boolean |
anyNull(Object... objects)
Check if any of the given objects are null
|
static boolean |
equals(Object object1,
Object object2)
Check if the two given objects are either both null or both equal
according the
Object.equals(Object) method of object1. |
static boolean |
equalsNonNull(Object object1,
Object object2)
Check if the two given objects are both non-null and equal according to
the
Object.equals(Object) method of object1. |
public static boolean equals(Object object1, Object object2)
Object.equals(Object) method of object1.object1 - object2 - public static boolean allNull(Object... objects)
objects - public static boolean anyNull(Object... objects)
objects - public static boolean equalsNonNull(Object object1, Object object2)
Object.equals(Object) method of object1.object1 - object2 - Copyright © 2011-2018. All Rights Reserved.