package com.google.graphgeckos.dashboard.fetchers.buildbot;

import org.springframework.lang.NonNull;

import java.util.Arrays;

public abstract class BuildBotClientPopulation {

  public static class BuildBotClientInitializer {
    public final String name;
    public final int initialBuildId;

    public BuildBotClientInitializer(String name, int initialBuildId) {
      this.name = name;
      this.initialBuildId = initialBuildId;
    }

  }

  public static void populate(@NonNull BuildBotClientInitializer[] buildBots) {
    if (buildBots.length == 0) {
      throw new IllegalArgumentException("Expected one or more BuildBots, found zero");
    }
    Arrays.stream(buildBots).forEach(x -> new BuildBotClient(x.name, x.initialBuildId));
  }

}
@@ -133,22 +133,51 @@
 lic 
-abstract class
+class BuildBotClientPopulation %7B%0A%0A  private
  Bui
@@ -193,26 +193,29 @@
 ntPopulation
+()
  %7B
+%7D
 %0A%0A  public s
@@ -722,20 +722,16 @@
 ach(x -%3E
- new
  BuildBo
@@ -737,16 +737,20 @@
 otClient
+.run
 (x.name,

change class tupe of the buildbotpopulation