Class DtoConvertService

java.lang.Object
org.qubership.atp.ram.converter.DtoConvertService

@Service public class DtoConvertService extends Object
  • Constructor Details

    • DtoConvertService

      public DtoConvertService()
  • Method Details

    • convert

      public <T> T convert(Object from, Class<T> to)
      Convert t.
      Type Parameters:
      T - the type parameter
      Parameters:
      from - the from
      to - the to
      Returns:
      the t
    • convertList

      public <T> List<T> convertList(List from, Class<T> to)
      Convert list list.
      Type Parameters:
      T - the type parameter
      Parameters:
      from - the from
      to - the to
      Returns:
      the list