| Constructor and Description |
|---|
SerializableCloner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClone(Object source)
Determine whether or not the current cloner can clone the given object.
|
Object |
clone(Object source)
Perform the clone.
|
static <T extends Serializable> |
clone(T obj)
Clone the given object using serialization.
|
public boolean canClone(Object source)
Clonerpublic Object clone(Object source)
Cloner
This method should never be called unless a corresponding Cloner.canClone(Object) returns TRUE.
public static <T extends Serializable> T clone(T obj)
T - Typeobj - - the object to clone.RuntimeException - If we were unable to clone the object.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.