CloneHelper Class

com.beasys.commerce.util
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

Constructor Summary

CloneHelper()

 

Method Summary

public static Object
clone(Object that)
Clones an object
public static Belonging
clone(Belonging that)
Return a clone of a belonging
public static Collection
clone(Collection collection)
return a deep copy of a collection
public static Map
clone(Map map)
return a deep copy of a map
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

CloneHelper

public CloneHelper()
 

Method Detail

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