Add javaDocs into ModelMapperImpl.class
@@ -8,21 +8,34 @@ import lombok.AllArgsConstructor;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Component;
+/**
+ * {@inheritDoc}
+ */
@Component
@AllArgsConstructor
public class ModelMapperImpl implements ModelMapperUtil {
private ModelMapper modelMapper;
+
+ /**
+ * {@inheritDoc}
+ */
public <S, D> D map(final S srcObj, Class<D> destClass) {
return modelMapper.map(srcObj, destClass);
}
+ /**
+ * {@inheritDoc}
+ */
public <S, D> D map(final S srcObj, D destObj) {
modelMapper.map(srcObj, destObj);
return destObj;
}
+ /**
+ * {@inheritDoc}
+ */
public <S, D> List<D> mapAll(final Collection<S> srcList, Class<D> destClass) {
return srcList.stream().map(src -> map(src, destClass)).collect(Collectors.toList());
}
