public class ObjectUtils
extends java.lang.Object
Constructor and Description |
---|
ObjectUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
deepClone(java.lang.Object object)
Try to create a deep clone of the provides object.
|
static java.lang.Object |
genericClone(java.lang.Object object)
Clone an Object if possible.
|
static java.lang.Class |
getBaseClass(java.lang.Object object)
This routine returns the base class of an object.
|
public static java.lang.Object genericClone(java.lang.Object object)
object
- The object to be cloned.null
if the cloning failed; or
the cloned Object
instance.
public static java.lang.Object deepClone(java.lang.Object object) throws java.lang.CloneNotSupportedException
genericClone
will be used instead.object
- The object to be copied.java.lang.CloneNotSupportedException
public static java.lang.Class getBaseClass(java.lang.Object object)
object
- The object whose base class you want to retrieve.