public class ListCloneFunction<T extends java.util.List> extends java.lang.Object implements CloneFunction<T>
| Constructor and Description | 
|---|
| ListCloneFunction() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cloneFields(Cloner cloner,
           T clone,
           T object)Clones the elements of the list. | 
| T | cloneObject(Cloner cloner,
           T object)Performs a shallow clone of the specified object. | 
public T cloneObject(Cloner cloner, T object)
CloneFunctioncloneObject in interface CloneFunction<T extends java.util.List>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 extends java.util.List>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.