Class PrimitiveBoxedUtils

java.lang.Object
org.kie.pmml.api.utils.PrimitiveBoxedUtils

public class PrimitiveBoxedUtils extends Object
Utility class to map a primitive with its boxed equivalent. Needed to avoid reflection at runtime.
  • Method Details

    • getKiePMMLPrimitiveBoxed

      public static Optional<PrimitiveBoxedUtils.PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c)
    • areSameWithBoxing

      public static boolean areSameWithBoxing(Class<?> a, Class<?> b)
      Returns true if one of the given Class<?> is a primitive or boxed of a KiePMMLPrimitiveBoxed and the other Class<?> is the boxed/unboxed counterpart of the same KiePMMLPrimitiveBoxed OR the same one. Returns false otherwise. Please note it returns false even if both classes are equals but are not a found between KIE_PMML_PRIMITIVE_BOXEDS
      Parameters:
      a -
      b -
      Returns: