Example #1
0
  public Set<DependencyMaterialConfig> getSchedulableDependencyMaterials() {
    HashSet<DependencyMaterialConfig> dependencyMaterials = new HashSet<>();

    for (MaterialConfig materialConfig : getSchedulableMaterials()) {
      if (materialConfig instanceof DependencyMaterialConfig) {
        dependencyMaterials.add((DependencyMaterialConfig) materialConfig);
      }
    }

    return dependencyMaterials;
  }
Example #2
0
  public Set<MaterialConfig> getSchedulableSCMMaterials() {
    HashSet<MaterialConfig> scmMaterials = new HashSet<>();

    for (MaterialConfig materialConfig : getSchedulableMaterials()) {
      if (!(materialConfig instanceof DependencyMaterialConfig)) {
        scmMaterials.add(materialConfig);
      }
    }

    return scmMaterials;
  }