All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unitils.objectvalidation.cloner.ObjectClonerImpl Maven / Gradle / Ivy

There is a newer version: 1.1.9
Show newest version
package org.unitils.objectvalidation.cloner;

import org.unitils.objectvalidation.ObjectCloner;

import com.rits.cloning.Cloner;


/**
 * Deeply clones an object.
 * 
 * @author Matthieu Mestrez
 * @since Oct 17, 2013
 */
public class ObjectClonerImpl implements ObjectCloner {
    
    @Override
    public  T deepClone(T object) {
        Cloner cloner = new Cloner();
        return cloner.deepClone(object);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy