Class BeanCopier.Copier
java.lang.Object
com.sure.tool.bean.BeanCopier.Copier
- Enclosing class:
BeanCopier
-
Method Summary
Modifier and TypeMethodDescriptiondeep()深拷贝(嵌套 Bean / 集合 / 数组递归)。跳过指定字段(黑名单)。源属性值为null时跳过。目标属性只读时跳过(默认抛CopyException)。仅拷贝指定字段(白名单)。<T> T拷贝为新目标对象。void拷贝到已有目标对象。
-
Method Details
-
ignoreNull
-
ignoreReadonly
-
deep
-
include
仅拷贝指定字段(白名单)。- Parameters:
fields- 字段名- Returns:
- this
-
exclude
跳过指定字段(黑名单)。- Parameters:
fields- 字段名- Returns:
- this
-
to
拷贝为新目标对象。- Type Parameters:
T- 目标类型- Parameters:
targetClass- 目标类型- Returns:
- 新目标对象
-
to
-