org.spicefactory.lib.util
Class ObjectUtil
java.lang.Object
org.spicefactory.lib.util.ObjectUtil
public class ObjectUtil
- extends Object
Utility methods for working with objects.
- Author:
- Jens Halm
|
Method Summary |
static boolean |
nullSafeEquals(Object o1,
Object o2)
Compares two objects and returns true if the specified objects are equal or both objects are null. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectUtil
public ObjectUtil()
nullSafeEquals
public static boolean nullSafeEquals(Object o1,
Object o2)
- Compares two objects and returns true if the specified objects are equal or both objects are null.
- Parameters:
o1 - object to compareo2 - object to compare
- Returns:
- true if the specified objects are equal or both objects are null