@Test public void declareTypes() { List<DerivedField> derivedFields = IntStream.range(0, 5) .mapToObj(value -> getDerivedField("FieldName-" + value)) .collect(Collectors.toList()); List<KiePMMLDroolsType> retrieved = fieldASTFactory.declareTypes(derivedFields); assertEquals(derivedFields.size(), retrieved.size()); for (int i = 0; i < derivedFields.size(); i++) { commonValidateKiePMMLDroolsType(retrieved.get(i), derivedFields.get(i)); } }
public List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields) { return derivedFields.stream().map(this::declareType).collect(Collectors.toList()); }
KiePMMLDerivedFieldASTFactory { public List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields) { return derivedFields.stream().map(this::declareType).collect(Collectors.toList()); } }
KiePMMLDerivedFieldASTFactory { public List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields) { return derivedFields.stream().map(this::declareType).collect(Collectors.toList()); } private  KiePMMLDerivedFieldASTFactory(final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap); }
KiePMMLDerivedFieldASTFactory { public List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields) { return derivedFields.stream().map(this::declareType).collect(Collectors.toList()); } private  KiePMMLDerivedFieldASTFactory(final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap); static KiePMMLDerivedFieldASTFactory factory(final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap); List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields); KiePMMLDroolsType declareType(DerivedField derivedField); }
KiePMMLDerivedFieldASTFactory { public List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields) { return derivedFields.stream().map(this::declareType).collect(Collectors.toList()); } private  KiePMMLDerivedFieldASTFactory(final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap); static KiePMMLDerivedFieldASTFactory factory(final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap); List<KiePMMLDroolsType> declareTypes(final List<DerivedField> derivedFields); KiePMMLDroolsType declareType(DerivedField derivedField);  }