@Test public void isSameWithBoxing() { for (int i = 0; i < types; i++) { assertTrue(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(primitives[i]).get().isSameWithBoxing(boxeds[i])); assertTrue(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(boxeds[i]).get().isSameWithBoxing(primitives[i])); assertTrue(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(primitives[i]).get().isSameWithBoxing(primitives[i])); assertTrue(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(boxeds[i]).get().isSameWithBoxing(boxeds[i])); assertFalse(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(primitives[i]).get().isSameWithBoxing(String.class)); assertFalse(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(boxeds[i]).get().isSameWithBoxing(String.class)); } }
public static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c) { return KIE_PMML_PRIMITIVE_BOXEDS.stream().filter(pBoxed -> c.equals(pBoxed.getPrimitive()) || c.equals(pBoxed.getBoxed())).findFirst(); }
PrimitiveBoxedUtils { public static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c) { return KIE_PMML_PRIMITIVE_BOXEDS.stream().filter(pBoxed -> c.equals(pBoxed.getPrimitive()) || c.equals(pBoxed.getBoxed())).findFirst(); } }
PrimitiveBoxedUtils { public static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c) { return KIE_PMML_PRIMITIVE_BOXEDS.stream().filter(pBoxed -> c.equals(pBoxed.getPrimitive()) || c.equals(pBoxed.getBoxed())).findFirst(); } private  PrimitiveBoxedUtils(); }
PrimitiveBoxedUtils { public static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c) { return KIE_PMML_PRIMITIVE_BOXEDS.stream().filter(pBoxed -> c.equals(pBoxed.getPrimitive()) || c.equals(pBoxed.getBoxed())).findFirst(); } private  PrimitiveBoxedUtils(); static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c); static boolean areSameWithBoxing(Class<?> a, Class<?> b); }
PrimitiveBoxedUtils { public static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c) { return KIE_PMML_PRIMITIVE_BOXEDS.stream().filter(pBoxed -> c.equals(pBoxed.getPrimitive()) || c.equals(pBoxed.getBoxed())).findFirst(); } private  PrimitiveBoxedUtils(); static Optional<PrimitiveBoxed> getKiePMMLPrimitiveBoxed(Class<?> c); static boolean areSameWithBoxing(Class<?> a, Class<?> b);  }