public interface CloneImplementor
CloneStrategy
and
CloneDriver
implementations. In general users do not work with the methods on this class,
using Cloner
insteadModifier and Type | Method and Description |
---|---|
boolean |
canClone(Class<?> clazz)
True if this implementor can clone the given class
|
<T> T |
clone(T obj,
CloneDriver context,
IdentityHashMap<Object,Object> referencesToReuse,
long stackDepth)
Performs a clone.
|
<T> T |
newInstance(Class<T> c)
Create a new, uninitialised instance of the given class (if supported).
|
<T> T newInstance(Class<T> c)
T
- The type of the instance to be constructedc
- Type to create instance ofboolean canClone(Class<?> clazz)
clazz
- The class<T> T clone(T obj, CloneDriver context, IdentityHashMap<Object,Object> referencesToReuse, long stackDepth)
T
- The type of the object to be clonedobj
- Object to clonecontext
- The CloneDriver that initiated the requestreferencesToReuse
- Any references for objects already cloned to ensure reference
identity is preservedstackDepth
- The number of objects already cloned in the current data structureCopyright © 2010–2018 Jadira Systems. All rights reserved.