Class MacrosDtoConvertService
java.lang.Object
org.qubership.atp.macros.core.converter.MacrosDtoConvertService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TConvert t.<T> List<T> convertList(List from, Class<T> to) Convert list to list.<T> List<T> convertSetToList(Set from, Class<T> to) Convert set to list.org.modelmapper.ModelMapperGet modelMapper for additional configulations
-
Constructor Details
-
MacrosDtoConvertService
public MacrosDtoConvertService()
-
-
Method Details
-
getModelMapper
public org.modelmapper.ModelMapper getModelMapper()Get modelMapper for additional configulations- Returns:
- modelMapper.
-
convert
Convert t.- Type Parameters:
T- the type parameter- Parameters:
from- the fromto- the to- Returns:
- the t
-
convertList
Convert list to list.- Type Parameters:
T- the type parameter- Parameters:
from- the fromto- the to- Returns:
- the set
-
convertSetToList
Convert set to list.- Type Parameters:
T- the type parameter- Parameters:
from- the fromto- the to- Returns:
- the set
-