public class ObjectUtil extends Object
Constructor and Description |
---|
ObjectUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
nullEquals(Object o1,
Object o2)
Compares two objects or null references.
|
static int |
nullHashCode(Object o)
Returns the hash code of the supplied object, or 0 if a null
reference is supplied.
|
public static boolean nullEquals(Object o1, Object o2)
o1
- The first object.o2
- The second objectObject.equals(java.lang.Object)
method of the first object;
false in all other situations.public static int nullHashCode(Object o)
o
- An object or null reference.Copyright © 2001-2016 Aduna. All Rights Reserved.