Class DeserializationMapper


  • public class DeserializationMapper
    extends Object
    The Class DeserializationMapper.
    Author:
    michalt
    • Method Detail

      • convertToObject

        protected static <T> T convertToObject​(Object object,
                                               Class<T> clazz,
                                               Field field,
                                               Class<?> subClazz,
                                               Class<?> subClazz2)
                                        throws Exception
        Convert from.
        Type Parameters:
        T - the generic type
        Parameters:
        object - the object
        clazz - the clazz
        field - the field
        subClazz - the sub clazz
        subClazz2 - the sub clazz 2
        Returns:
        the t
        Throws:
        Exception - the exception
      • convertToObject

        protected static <T> T convertToObject​(Object object,
                                               Class<T> clazz)
                                        throws Exception
        Convert from.
        Type Parameters:
        T - the generic type
        Parameters:
        object - the object
        clazz - the clazz
        Returns:
        the t
        Throws:
        Exception - the exception
      • convertToObject

        protected static <T> T convertToObject​(Object object,
                                               Class<T> clazz,
                                               Class<?> subClazz)
                                        throws Exception
        Convert from.
        Type Parameters:
        T - the generic type
        Parameters:
        object - the object
        clazz - the clazz
        subClazz - the sub clazz
        Returns:
        the t
        Throws:
        Exception - the exception