Class ModelMapper


  • public class ModelMapper
    extends java.lang.Object
    인스턴스를 다른 인스턴스로 변환할 수 있게 하는 클래스
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T,​U>
      U
      convert​(T instance, java.lang.Class<U> clazz)
      인스턴스를 다른 클래스 타입으로 변환한다.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelMapper

        public ModelMapper()
    • Method Detail

      • convert

        public <T,​U> U convert​(T instance,
                                     java.lang.Class<U> clazz)
        인스턴스를 다른 클래스 타입으로 변환한다.
        Type Parameters:
        T - 기존 인스턴스 타입
        U - 변경할 클래스 타입
        Parameters:
        instance - 기존 인스턴스
        clazz - 변경할 클래스 타입
        Returns:
        변경된 인스턴스