public class IdentityCloneFunction<T> extends java.lang.Object implements CloneFunction<T>
| Constructor and Description | 
|---|
| IdentityCloneFunction() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cloneFields(Cloner cloner,
           T clone,
           T object)Does nothing. | 
| T | cloneObject(Cloner cloner,
           T object)Returns the object directly. | 
public T cloneObject(Cloner cloner, T object)
cloneObject in interface CloneFunction<T>cloner - The cloner performing the cloning operation.object - The original object that needs to be cloned.public void cloneFields(Cloner cloner, T clone, T object)
cloneFields in interface CloneFunction<T>cloner - The cloner performing the cloning operation.clone - The clone previously returned from cloneObject().object - The original object that was cloned.  This is provided for
              the very special case where field cloning needs to refer to
              the original object.  Mostly the necessary fields should already
              be on the clone.