Class ConverterTypeUtil

java.lang.Object
org.kie.pmml.api.utils.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 Details

    • 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: