com.taskadapter.redmineapi.internal.Joiner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.internal;
import com.taskadapter.redmineapi.Include;
public class Joiner {
// TODO add unit tests
public static String join(String delimToUse, Include... include) {
String delim = "";
StringBuilder sb = new StringBuilder();
for (Include i : include) {
sb.append(delim).append(i);
delim = delimToUse;
}
return sb.toString();
}
}