T
- 拷贝的对象C
- 本类的类型。用于set方法返回本对象,方便流式编程public abstract class SrcToTargetCopier<T,C extends SrcToTargetCopier<T,C>> extends Object implements Copier<T>, Serializable
Modifier and Type | Field and Description |
---|---|
protected Predicate<T> |
copyPredicate
拷贝过滤器,可以过滤掉不需要拷贝的源
|
protected T |
src
源
|
protected T |
target
目标
|
Constructor and Description |
---|
SrcToTargetCopier() |
Modifier and Type | Method and Description |
---|---|
Predicate<T> |
getCopyPredicate()
获得过滤器
|
T |
getSrc()
获取源
|
T |
getTarget()
获得目标
|
C |
setCopyPredicate(Predicate<T> copyPredicate)
设置过滤器
|
C |
setSrc(T src)
设置源
|
C |
setTarget(T target)
设置目标
|
Copyright © 2025. All rights reserved.