| Constructor and Description |
|---|
SerializableCloner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClone(java.lang.Object source)
Determine whether or not the current cloner can clone the given object.
|
java.lang.Object |
clone(java.lang.Object source)
Perform the clone.
|
static <T extends java.io.Serializable> |
clone(T obj)
Clone the given object using serialization.
|
public boolean canClone(java.lang.Object source)
Clonerpublic java.lang.Object clone(java.lang.Object source)
Cloner
This method should never be called unless a corresponding Cloner.canClone(Object) returns TRUE.
public static <T extends java.io.Serializable> T clone(T obj)
obj - - the object to clone.java.lang.RuntimeException - If we were unable to clone the object.