Class BeanMapperConverter

java.lang.Object
nl._42.beanie.convert.BeanMapperConverter
All Implemented Interfaces:
BeanConverter

public class BeanMapperConverter extends Object implements BeanConverter
  • Constructor Details

    • BeanMapperConverter

      public BeanMapperConverter(io.beanmapper.BeanMapper beanMapper)
  • Method Details

    • convert

      public <T> T convert(Object bean, Class<T> targetType)
      Description copied from interface: BeanConverter
      Convert the bean to another type.
      Specified by:
      convert in interface BeanConverter
      Type Parameters:
      T - the target type
      Parameters:
      bean - the bean
      targetType - the target type
      Returns:
      the converted bean