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

org.visallo.web.clientapi.util.StringUtils Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.visallo.web.clientapi.util;

import java.util.Collection;

public class StringUtils {
    public static String join(Collection items) {
        StringBuilder result = new StringBuilder();
        boolean first = true;
        for (Object o : items) {
            if (!first) {
                result.append(",");
            }
            if (o != null) {
                result.append(o);
            }
            first = false;
        }
        return result.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy