org.sfm.map.MapperImpl Maven / Gradle / Ivy
package org.sfm.map;
import org.sfm.reflect.Instantiator;
public class MapperImpl extends AbstractMapperImpl {
private final FieldMapper[] fieldMappers;
public MapperImpl(final FieldMapper[] mappers, final Instantiator instantiator) {
super(instantiator);
this.fieldMappers = mappers;
}
protected final void mapFields(final S source, final T target) throws Exception {
for(int i = 0; i < fieldMappers.length; i++) {
fieldMappers[i].map(source, target);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy