Class PrimitiveBoxedUtils


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

      • areSameWithBoxing

        public static boolean areSameWithBoxing​(java.lang.Class<?> a,
                                                java.lang.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: