public class ObjectCopyUtils extends Object
| 构造器和说明 |
|---|
ObjectCopyUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,S> S |
copyProperties(T source,
Class<S> target)
对象拷贝工具方法
|
static <T,S> S |
copyProperties(T source,
Class<S> target,
String[] ignore)
对象拷贝工具方法
|
static <T,S> void |
copyProperties(T source,
S target)
对象拷贝工具方法
|
static <T,S> void |
copyProperties(T source,
S target,
String[] ignore)
对象拷贝工具方法
|
static <T,S> void |
copyProperties(T source,
S target,
String[] ignore,
boolean serialVersionUID)
对象拷贝工具方法
|
public static <T,S> S copyProperties(T source,
Class<S> target)
T - 源对象类型S - 目标对象类型source - 源对象target - 目标对象 classpublic static <T,S> S copyProperties(T source,
Class<S> target,
String[] ignore)
T - 源对象类型S - 目标对象类型source - 源对象target - 目标对象 classignore - 忽略的属性public static <T,S> void copyProperties(T source,
S target)
T - 源对象类型S - 目标对象类型source - 源对象target - 目标对象public static <T,S> void copyProperties(T source,
S target,
String[] ignore)
T - 源对象类型S - 目标对象类型source - 源对象target - 目标对象ignore - 忽略的属性public static <T,S> void copyProperties(T source,
S target,
String[] ignore,
boolean serialVersionUID)
T - 源对象类型S - 目标对象类型source - 源对象target - 目标对象ignore - 忽略的属性serialVersionUID - 是否忽略 serialVersionUID 属性Copyright © 2024. All rights reserved.