@Test public void getKiePMMLPrimitiveBoxed() { for (int i = 0; i < types; i++) { assertTrue(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(primitives[i]).isPresent()); assertTrue(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(boxeds[i]).isPresent()); } assertFalse(PrimitiveBoxedUtils.getKiePMMLPrimitiveBoxed(String.class).isPresent()); }
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);  }