public abstract class AbstractCopier<SRC,TARGET> extends AbstractCopierCommon<SRC,TARGET> implements Copier<SRC,TARGET>
Created by davidoff shen on 2017-03-17.
AbstractCopierCommon.Index| Constructor and Description |
|---|
AbstractCopier() |
| Modifier and Type | Method and Description |
|---|---|
Collection<TARGET> |
copy(Collection<SRC> srcCollection) |
<T extends Collection<TARGET>> |
copy(Collection<SRC> srcCollection,
Class<T> clazz)
复制集合
|
protected Object |
copy(Object o,
AbstractCopierCommon.Index srcIndex) |
TARGET |
copy(SRC src) |
TARGET |
initTargetObject() |
TARGET |
initTargetObject(TARGET target) |
TARGET |
newTargetObject() |
copy, copy, getClass, init, newObjectpublic TARGET newTargetObject()
newTargetObject in interface Copier<SRC,TARGET>public TARGET initTargetObject(TARGET target)
initTargetObject in interface Copier<SRC,TARGET>target - 目标对象实例public TARGET initTargetObject()
initTargetObject in interface Copier<SRC,TARGET>protected Object copy(Object o, AbstractCopierCommon.Index srcIndex)
copy in class AbstractCopierCommon<SRC,TARGET>public <T extends Collection<TARGET>> T copy(Collection<SRC> srcCollection, Class<T> clazz)
Copierpublic Collection<TARGET> copy(Collection<SRC> srcCollection)
Copyright © 2018. All rights reserved.