Class ConverterTypeUtil


  • public class ConverterTypeUtil
    extends Object
    Class meant to provide helper methods to convert a given object to another one of a requested type
    • Method Detail

      • convert

        public static Object convert​(Class<?> expectedClass,
                                     Object originalObject)
        Convert the given Object to expected Class. It throws KiePMMLInternalException if conversion has failed
        Parameters:
        expectedClass -
        originalObject -
        Returns: