@Test void isSuitable() { Attribute stringAttribute = attrMetaFactory.create().setName("source_string"); assertTrue( numericAlgorithmGenerator.isSuitable(targetAttribute, singletonList(sourceAttribute))); assertFalse( numericAlgorithmGenerator.isSuitable( targetAttribute, asList(sourceAttribute, stringAttribute))); }
public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isNumericDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isNumericDataType)); }
NumericAlgorithmGenerator implements AlgorithmGenerator { public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isNumericDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isNumericDataType)); } }
NumericAlgorithmGenerator implements AlgorithmGenerator { public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isNumericDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isNumericDataType)); } NumericAlgorithmGenerator(UnitResolver unitResolver); }
NumericAlgorithmGenerator implements AlgorithmGenerator { public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isNumericDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isNumericDataType)); } NumericAlgorithmGenerator(UnitResolver unitResolver); String generate(
      Attribute targetAttribute,
      List<Attribute> sourceAttributes,
      EntityType targetEntityType,
      EntityType sourceEntityType); boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes); }
NumericAlgorithmGenerator implements AlgorithmGenerator { public boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes) { return isNumericDataType(targetAttribute) && (sourceAttributes.stream().allMatch(this::isNumericDataType)); } NumericAlgorithmGenerator(UnitResolver unitResolver); String generate(
      Attribute targetAttribute,
      List<Attribute> sourceAttributes,
      EntityType targetEntityType,
      EntityType sourceEntityType); boolean isSuitable(Attribute targetAttribute, List<Attribute> sourceAttributes);  }