org.spicefactory.lib.util
Class ObjectUtil

java.lang.Object
  extended by org.spicefactory.lib.util.ObjectUtil

public class ObjectUtil
extends Object

Utility methods for working with objects.

Author:
Jens Halm

Constructor Summary
ObjectUtil()
           
 
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
 

Constructor Detail

ObjectUtil

public ObjectUtil()
Method Detail

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 compare
o2 - object to compare
Returns:
true if the specified objects are equal or both objects are null