public static TestSlowdownInfo fromString()

in testDuration-server/src/main/java/org/jetbrains/teamcity/testDuration/TestSlowdownInfo.java [68:81]


  public static TestSlowdownInfo fromString(@NotNull String s) {
    List<String> segments = StringUtil.split(s, ",");
    if (segments.size() < 5)
      throw new IllegalArgumentException("Wrong data format: " + s);
    try {
      return new TestSlowdownInfo(Integer.valueOf(segments.get(0)),
                                  Integer.valueOf(segments.get(1)),
                                  Integer.valueOf(segments.get(2)),
                                  Integer.valueOf(segments.get(3)),
                                  Long.valueOf(segments.get(4)));
    } catch (NumberFormatException e) {
      throw new IllegalArgumentException("Wrong data format: " + s);
    }
  }