add methods

This commit is contained in:
Looly
2020-06-12 16:39:42 +08:00
parent e71422bf86
commit 4843e684b0
2 changed files with 2 additions and 25 deletions

View File

@@ -605,20 +605,6 @@ public class BeanUtil {
// --------------------------------------------------------------------------------------------- copyProperties
/**
* 创建对应的Class对象并复制Bean对象属性
*
* @param <T> 对象类型
* @param source 源Bean对象
* @param tClass 目标Class
* @return 目标对象
*/
public static <T> T copyProperties(Object source, Class<T> tClass) {
T target = ReflectUtil.newInstanceIfPossible(tClass);
copyProperties(source, target, CopyOptions.create());
return target;
}
/**
* 按照Bean对象属性创建对应的Class对象并忽略某些属性
*
@@ -634,16 +620,6 @@ public class BeanUtil {
return target;
}
/**
* 复制Bean对象属性
*
* @param source 源Bean对象
* @param target 目标Bean对象
*/
public static void copyProperties(Object source, Object target) {
copyProperties(source, target, CopyOptions.create());
}
/**
* 复制Bean对象属性<br>
* 限制类用于限制拷贝的属性例如一个类我只想复制其父类的一些属性就可以将editable设置为父类