T - 目标对象类型public class BeanCopier<T> extends Object implements Copier<T>, Serializable
1. Bean 转 Bean
2. Bean 转 Map
3. Map 转 Bean
4. Map 转 Map
| Constructor and Description |
|---|
BeanCopier(Object source,
T target,
Type targetType,
CopyOptions copyOptions)
构造
|
| Modifier and Type | Method and Description |
|---|---|
T |
copy()
执行拷贝
|
static <T> BeanCopier<T> |
create(Object source,
T target,
CopyOptions copyOptions)
创建BeanCopier
|
static <T> BeanCopier<T> |
create(Object source,
T target,
Type destType,
CopyOptions copyOptions)
创建BeanCopier
|
public BeanCopier(Object source, T target, Type targetType, CopyOptions copyOptions)
source - 来源对象,可以是Bean或者Maptarget - 目标Bean对象targetType - 目标的泛型类型,用于标注有泛型参数的Bean对象copyOptions - 拷贝属性选项public static <T> BeanCopier<T> create(Object source, T target, CopyOptions copyOptions)
T - 目标Bean类型source - 来源对象,可以是Bean或者Maptarget - 目标Bean对象copyOptions - 拷贝属性选项public static <T> BeanCopier<T> create(Object source, T target, Type destType, CopyOptions copyOptions)
T - 目标Bean类型source - 来源对象,可以是Bean或者Maptarget - 目标Bean对象destType - 目标的泛型类型,用于标注有泛型参数的Bean对象copyOptions - 拷贝属性选项Copyright © 2025. All rights reserved.