Class CollectionCloner
java.lang.Object
com.comphenix.protocol.reflect.cloning.CollectionCloner
- All Implemented Interfaces:
Cloner
Attempts to clone collection and array classes.
- Author:
- Kristian
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionCloner(Cloner defaultCloner)Constructs a new collection and array cloner with the given inner element cloner. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether or not the current cloner can clone the given object.Perform the clone.Retrieve the default cloner used to clone the content of each element in the collection.
-
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 or not 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.
-