Class CollectionCloner
java.lang.Object
com.comphenix.protocol.reflect.cloning.CollectionCloner
- All Implemented Interfaces:
Cloner
Attempts to clone collection and array classes.
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionCloner(Cloner defaultCloner) Constructs a new collection and array cloner with the given inner element cloner. -
Method Summary
-
Constructor Details
-
CollectionCloner
Constructs a new collection and array cloner with the given inner element cloner.- Parameters:
defaultCloner- - default inner element cloner.
-
-
Method Details
-
canClone
Description copied from interface:ClonerDetermine whether the current cloner can clone the given object. -
clone
Description copied from interface:ClonerPerform the clone.This method should never be called unless a corresponding
Cloner.canClone(Object)returns TRUE. -
getDefaultCloner
Retrieve the default cloner used to clone the content of each element in the collection.- Returns:
- Cloner used to clone elements.
-