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

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

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

import org.unitils.mock.core.proxy.CloneUtil;
import org.unitils.objectvalidation.ObjectCloner;


/**
 * Deeply clones an object.
 * This implementation can be overriden in the construction of a {@link org.unitils.objectvalidation.ObjectValidationRulesCollection}.
 * 
 * @author Matthieu Mestrez
 * @since Oct 17, 2013
 */
public class UnitilsObjectClonerImpl implements ObjectCloner {
    
    @Override
    public  T deepClone(T object) {
        /*Cloner cloner = new Cloner();
        return cloner.deepClone(object);*/
    	return CloneUtil.createDeepClone(object);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy