Class MapperUtils

java.lang.Object
com.unosquare.carmigo.util.MapperUtils

public final class MapperUtils extends Object
Utility to handle object mapping.
  • 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.