Class ConverterTypeUtil


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object convert​(java.lang.Class<?> expectedClass, java.lang.Object originalObject)
      Convert the given Object to expected Class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convert

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