WarpPI/src/com/rits/cloning/IDeepCloner.java
2016-09-02 20:32:37 +02:00

24 lines
472 B
Java

package com.rits.cloning;
import java.util.Map;
/**
* used by fast cloners to deep clone objects
*
* @author kostas.kougios Date 24/06/14
*/
public interface IDeepCloner {
/**
* deep clones o
*
* @param o
* the object to be deep cloned
* @param clones
* pass on the same map from IFastCloner
* @param <T>
* the type of o
* @return a clone of o
*/
<T> T deepClone(final T o, final Map<Object, Object> clones);
}