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

net.spy.memcached.util.StringUtils Maven / Gradle / Ivy

package net.spy.memcached.util;

import java.util.Collection;

/**
 * Some String utilities.
 */
public final class StringUtils {

	private StringUtils() {
		// Empty
	}

	public static String join(Collection keys, String delimiter) {
		StringBuilder sb = new StringBuilder();
		for (String key : keys) {
			sb.append(key);
			sb.append(delimiter);
		}
		return sb.toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy