com.jarvis.cache.clone.ICloner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoload-cache-serializer-api Show documentation
Show all versions of autoload-cache-serializer-api Show documentation
The serializer module of autoload-cache project
package com.jarvis.cache.clone;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
/**
* 深度复制
*
*
*/
public interface ICloner {
/**
* 深度复制Object
*
* @param obj Object
* @param type obj的类型,方便以json来处理时,提升性能,如果获取不到type,则可以为null
* @return Object
* @throws Exception 异常
*/
Object deepClone(Object obj, final Type type) throws Exception;
/**
* 深度复制 Method 中的参数
*
* @param method Method
* @param args 参数
* @return 参数
* @throws Exception 异常
*/
Object[] deepCloneMethodArgs(Method method, Object[] args) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy