Package org.kie.pmml.api.utils
Class PrimitiveBoxedUtils
java.lang.Object
org.kie.pmml.api.utils.PrimitiveBoxedUtils
Utility class to map a primitive with its boxed equivalent.
Needed to avoid reflection at runtime.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareSameWithBoxing(Class<?> a, Class<?> b) Returnstrueif one of the givenClass<?>is a primitive or boxed of aKiePMMLPrimitiveBoxedand the otherClass<?>is the boxed/unboxed counterpart of the sameKiePMMLPrimitiveBoxedOR the same one.
-
Method Details
-
getKiePMMLPrimitiveBoxed
-
areSameWithBoxing
Returnstrueif one of the givenClass<?>is a primitive or boxed of aKiePMMLPrimitiveBoxedand the otherClass<?>is the boxed/unboxed counterpart of the sameKiePMMLPrimitiveBoxedOR the same one. Returnsfalseotherwise. Please note it returnsfalseeven if both classes areequalsbut are not a found betweenKIE_PMML_PRIMITIVE_BOXEDS- Parameters:
a-b-- Returns:
-