| Constructor and Description |
|---|
CollectionCloner(Cloner defaultCloner)
Constructs a new collection and array cloner with the given inner element cloner.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClone(java.lang.Object source)
Determine whether or not the current cloner can clone the given object.
|
java.lang.Object |
clone(java.lang.Object source)
Perform the clone.
|
Cloner |
getDefaultCloner()
Retrieve the default cloner used to clone the content of each element in the collection.
|
public CollectionCloner(Cloner defaultCloner)
defaultCloner - - default inner element cloner.public boolean canClone(java.lang.Object source)
Clonerpublic java.lang.Object clone(java.lang.Object source)
Cloner
This method should never be called unless a corresponding Cloner.canClone(Object) returns TRUE.
public Cloner getDefaultCloner()