public Set<DependencyMaterialConfig> getSchedulableDependencyMaterials() { HashSet<DependencyMaterialConfig> dependencyMaterials = new HashSet<>(); for (MaterialConfig materialConfig : getSchedulableMaterials()) { if (materialConfig instanceof DependencyMaterialConfig) { dependencyMaterials.add((DependencyMaterialConfig) materialConfig); } } return dependencyMaterials; }
public Set<MaterialConfig> getSchedulableSCMMaterials() { HashSet<MaterialConfig> scmMaterials = new HashSet<>(); for (MaterialConfig materialConfig : getSchedulableMaterials()) { if (!(materialConfig instanceof DependencyMaterialConfig)) { scmMaterials.add(materialConfig); } } return scmMaterials; }