public interface ConvertSourceTarget
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object source,
T target,
boolean isTargetTo,
String... tags)
Fill the target object with the values from the source object.
|
<T> T convert(Object source, T target, boolean isTargetTo, String... tags)
This will write all values from the transfer object, other fields are not touched.
T - type of object for targetsource - source object. Should not be null.target - target object. Should not be null.isTargetTo - is the target class the transfer object?tags - tags which indicate which fields can be converted based on MapOnly annotations.
Tags are processed from left to right.Copyright © 2017. All rights reserved.