Code example for Joiner

Methods: join

0
  } 
 
  public String build() {
    return String.format("%s: %s ID=%d (%d/%d)",
        pipelineName,
        shortenRootStackName(JOINER.join(rootStack), maxStackNameLength),
        jobID,
        jobSequence,
        numOfJobs);
  } 
 
  private static String shortenRootStackName(String s, int len) {
    int n = s.length();
    if (len <= 3) {
      return "..."; 
    } 
    if (n <= len) {
      return s;
    } 
    return s.substring(0, len - 3) + "...";
Connect your IDE to all the code out there  Get Codota for Java