public final class ObjectUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
compareWithNull(T o1,
T o2)
Returns true if the two given objects are identical as reported by
.equals()
This is tolerant of one or both of the values being null, and will return
true if both are null (and false if only one is null).
|
public static <T> boolean compareWithNull(T o1, T o2)
T
- The class of object being comparedo1
- The first object to be compared for equalityo2
- The second object to be compared for equality