- All Implemented Interfaces:
Copier<T>
public class EntityCopier<T>
extends Object
implements Copier<T>
-
Constructor Summary
Constructors
-
Method Summary
Copy an Object
If a field has the annotation , it will not be copied.
Copy an Object
If a field has the annotation , it will be copied only if copyIgnoredField = true.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EntityCopier
public EntityCopier(Class<T> clazz)
-
Method Details
-
copy
public T copy(Object src,
boolean copyIgnoredFields)
Description copied from interface: Copier
Copy an Object
If a field has the annotation , it will be copied only if copyIgnoredField = true.
- Specified by:
copy in interface Copier<T>
- Parameters:
src - object that will be copied.
- Returns:
- the copied object.
-
copy
Description copied from interface: Copier
Copy an Object
If a field has the annotation , it will not be copied.
- Specified by:
copy in interface Copier<T>
- Parameters:
src - object that will be copied.
- Returns:
- the copied object.