com.rits.cloning.IFastCloner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloning Show documentation
Show all versions of cloning Show documentation
The cloning library is a small, open source (Apache
licensed) Java library which deep-clones objects. The
objects do not have to implement the Cloneable
interface. Effectively, this library can clone ANY
Java object. It can be used i.e. in cache
implementations, if you don't want the cached object
to be modified or whenever you want to create a deep
copy of an object.
package com.rits.cloning;
import java.util.Map;
/**
* allows a custom cloner to be created for a specific class.
* (it has to be registered with Cloner)
*
* @author kostantinos.kougios
* 21 May 2009
*/
public interface IFastCloner {
public Object clone(Object t, IDeepCloner cloner, Map