All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudbees.api.StringUtils Maven / Gradle / Ivy

The newest version!
package com.cloudbees.api;

import java.util.Collection;
import java.util.List;

/**
 * @author Kohsuke Kawaguchi
 */
/*package*/ class StringUtils {
    static  String join(Collection values, String delim) {
        StringBuilder buf = new StringBuilder();
        for (String value : values) {
            if (buf.length()>0)
                buf.append(delim);
            buf.append(value);
        }
        return buf.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy