public class NoCloneImplementor extends Object implements CloneImplementor
Constructor and Description |
---|
NoCloneImplementor() |
Modifier 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).
|
public NoCloneImplementor()
public <T> T newInstance(Class<T> c)
CloneImplementor
newInstance
in interface CloneImplementor
T
- The type of the instance to be constructedc
- Type to create instance ofpublic boolean canClone(Class<?> clazz)
CloneImplementor
canClone
in interface CloneImplementor
clazz
- The classpublic <T> T clone(T obj, CloneDriver context, IdentityHashMap<Object,Object> referencesToReuse, long stackDepth)
CloneImplementor
clone
in interface CloneImplementor
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.