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, Keith Donald
See Also:
org.apache.commons.lang.ObjectUtils

Constructor Summary
ObjectUtils()
           
 
Method Summary
static java.lang.String getIdentityHexString(java.lang.Object o)
          Return a hex string form of an object's identity hash code.
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

getIdentityHexString

public static java.lang.String getIdentityHexString(java.lang.Object o)
Return a hex string form of an object's identity hash code.

Parameters:
o - the object
Returns:
the object's identity code in hex


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