com.beasys.commerce.util
Class CloneHelper
java.lang.Object
|
+--com.beasys.commerce.util.CloneHelper
- public class CloneHelper
- extends java.lang.Object
Helper for cloning. Allows cloning of the Object class, when you
don't know the class of the target object
Method Summary |
static Belonging |
clone(Belonging that)
Return a clone of a belonging |
static java.util.Collection |
clone(java.util.Collection collection)
return a deep copy of a collection |
static java.util.Map |
clone(java.util.Map map)
return a deep copy of a map |
static java.lang.Object |
clone(java.lang.Object that)
Clones an object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloneHelper
public CloneHelper()
clone
public static java.lang.Object clone(java.lang.Object that)
- Clones an object
- Parameters:
that
- source object to be cloned- Throws:
java.lang.CloneNotSupportedException
- the target object does not support cloningjava.lang.Error
- unrecoverable error during reflection
clone
public static Belonging clone(Belonging that)
- Return a clone of a belonging
clone
public static java.util.Collection clone(java.util.Collection collection)
- return a deep copy of a collection
clone
public static java.util.Map clone(java.util.Map map)
- return a deep copy of a map
Copyright © 2001 BEA Systems, Inc. All Rights Reserved