CloneHelper Class
- public class CloneHelper
extends Object
Helper for cloning. Allows cloning of the Object class, when you
don't know the class of the target object
-
Hierarchy
-
Object
CloneHelper
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloneHelper
public CloneHelper()
clone(Object) Method
public static Object
clone(Object
that)
Clones an object
Parameters
-
that
- source object to be cloned
clone(Belonging) Method
public static Belonging
clone(Belonging
that)
Return a clone of a belonging
clone(Collection) Method
public static Collection
clone(Collection
collection)
return a deep copy of a collection
clone(Map) Method
public static Map
clone(Map
map)
return a deep copy of a map