org.springframework.util
Class ObjectUtils

java.lang.Object
  extended byorg.springframework.util.ObjectUtils

public abstract class ObjectUtils
extends java.lang.Object

Miscellaneous object utility methods. Mainly for internal use within the framework; consider Jakarta's Commons Lang for a more comprehensive suite of object utilities.

Since:
19.03.2004
Author:
Juergen Hoeller
See Also:
org.apache.commons.lang.ObjectUtils

Constructor Summary
ObjectUtils()
           
 
Method Summary
static boolean nullSafeEquals(java.lang.Object o1, java.lang.Object o2)
          Determine if the given Objects are equal, returning true if both are null respectively false if only one is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtils

public ObjectUtils()
Method Detail

nullSafeEquals

public static boolean nullSafeEquals(java.lang.Object o1,
                                     java.lang.Object o2)
Determine if the given Objects are equal, returning true if both are null respectively false if only one is null.

Parameters:
o1 - first Object to compare
o2 - second Object to compare
Returns:
whether the given Objects are equal


Copyright (C) 2003-2004 The Spring Framework Project.