|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.util.ObjectUtils
Miscellaneous object utility methods. Mainly for internal use within the framework; consider Jakarta's Commons Lang for a more comprehensive suite of object utilities.
org.apache.commons.lang.ObjectUtils| Constructor Summary | |
ObjectUtils()
|
|
| Method Summary | |
static String |
getIdentityHexString(Object o)
Return a hex string form of an object's identity hash code. |
static boolean |
isCheckedException(Throwable ex)
Return whether the given throwable is a checked exception, i.e. an Exception but not a RuntimeException. |
static boolean |
isCompatibleWithThrowsClause(Throwable ex,
Class[] declaredExceptions)
Check whether the given exception is compatible with the exceptions declared in a throws clause. |
static boolean |
nullSafeEquals(Object o1,
Object o2)
Determine if the given objects are equal, returning true if both are null respectively false if only one is null. |
static Object[] |
toObjectArray(Object primitiveArray)
Convert a primitive array to an object array of primitive wrapper objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectUtils()
| Method Detail |
public static boolean nullSafeEquals(Object o1,
Object o2)
o1 - first Object to compareo2 - second Object to compare
public static String getIdentityHexString(Object o)
o - the object
public static boolean isCheckedException(Throwable ex)
ex - the throwable to check
Exception,
RuntimeException
public static boolean isCompatibleWithThrowsClause(Throwable ex,
Class[] declaredExceptions)
ex - the exception to checkeddeclaredExceptions - the exceptions declared in the throws clause
public static Object[] toObjectArray(Object primitiveArray)
primitiveArray - the primitive array
IllegalArgumentException - if the parameter is not a primitive array
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||