deepClone<T> static method
T
deepClone<T>(
- T original
Implementation
static T deepClone<T>(T original) {
if (original is Cloneable) {
return original.clone();
} else {
throw Exception("Object does not implement cloneable interface");
}
}