public final class MapperUtils
extends Object
Utility to handle object mapping.
-
Method Summary
mapList(List<S> source,
Class<T> targetClass,
org.modelmapper.ModelMapper modelMapper)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
mapList
public static <S,
T> List<T> mapList(List<S> source,
Class<T> targetClass,
org.modelmapper.ModelMapper modelMapper)
Map a List to an object.
- Parameters:
source
- the List.
targetClass
- the object to be mapped to.
modelMapper
- ModelMapper reference.
- Returns:
- the converted List.